---
title: "create"
method: POST
path: "/api/chat_attachments"
tags: ["ChatAttachment"]
---

# create

`POST /api/chat_attachments`

## Request body

- object
  - `data` object, required
    - `type` string, required
    - `attributes` object, required
      - `chatId` string, required
      - `contentType` string, required
      - `inputFieldName` string, required
      - `binaryBase64` string, required

## Response `201`

Chat attachment successfully created

## Other responses

- `422` — returns validation error

---

[API](https://skmtc.net/treasure/apis/llm-api.md) · [All operations](https://skmtc.net/treasure/apis/llm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/llm-api/revisions/56f275763358/schema)
