List

GET
/api/v1/threads/{threadId}/attachments

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Path parameters

threadId*string

Query parameters

after?string

Exclusive forward event-ID cursor from cursor. Without either bound, returns the oldest page.

Length26 <= length <= 26
before?string

Exclusive backward event-ID cursor from beforeCursor. Without after, returns the nearest older page.

Length26 <= length <= 26
limit?string

Event-count target, default 50 and maximum 200, paged exactly like the messages list. A page can contain no attachments; continue until its directional cursor is null.

Match^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$

Response body

ThreadAttachmentPage

application/json
  1. response
items*array<>
cursor*|

Opaque exclusive event-ID cursor for after, the same cursor the messages list returns. Null when no newer events remain.

beforeCursor*|

Opaque exclusive event-ID cursor for before. Null when no older events remain.

curl -X GET 'https://api.capy.ai/api/v1/threads/string/attachments'
{  "items": [    {      "id": "string",      "name": "string",      "mediaType": "string",      "sizeBytes": 0,      "title": "string",      "messageId": "string",      "source": "user",      "createdAt": "string"    }  ],  "cursor": "string",  "beforeCursor": "string"}
Open in Capy