Skip to content

index

Request

Security
ApiKeyAuth
Query
filter[attachment_type]string
Example:filter[attachment_type]=USER_INPUT_DRAFT
filter[chat_id]string
Example:filter[chat_id]=00000000-0000-0000-0000-000000000001
sortstring
Example:sort=attachment_index
curl -i -X GET \
  'https://llm-api.treasuredata.com/api/chat_attachments?filter%5Battachment_type%5D=USER_INPUT_DRAFT&filter%5Bchat_id%5D=00000000-0000-0000-0000-000000000001&sort=attachment_index' \
  -H 'Authorization: TD1 <YOUR_TOKEN_HERE>'

Responses

sorts by attachment_index

Bodyapplication/vnd.api+json
dataArray of objectsrequired
metaobjectrequired
Response
{ "data": [ {}, {} ], "meta": { "total": 2 }, "links": { "first": "http://www.example.com/api/chat_attachments?page%5Blimit%5D=20&page%5Boffset%5D=0&sort=attachment_index", "last": "http://www.example.com/api/chat_attachments?page%5Blimit%5D=20&page%5Boffset%5D=0&sort=attachment_index" } }