Skip to content

create

Request

Security
ApiKeyAuth
Bodyapplication/json
dataobjectrequired
curl -i -X POST \
  https://llm-api.treasuredata.com/api/chat_attachments \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "type": "chat_attachments",
      "attributes": {
        "chatId": "00000000-0000-0000-0000-000000000001",
        "contentType": "image/png",
        "inputFieldName": "screenshot",
        "binaryBase64": "iVBORw0KGgoAAAAAAAAAAAAABAAAAAMAAAAAAAAAAAAAAA=="
      }
    }
  }'

Responses

Chat attachment successfully created

Bodyapplication/vnd.api+json
dataobjectrequired
Response
{ "data": { "id": "00000000-0000-0000-0000-000000000001", "type": "chatAttachments", "links": {}, "attributes": {} } }