List
GET
bearerAuthheader
AuthorizationBearer <token>An API key created in Capy under Settings → API.
threadId*stringafter?stringExclusive forward event-ID cursor from cursor. Without either bound, returns the oldest page.
Length
26 <= length <= 26before?stringExclusive backward event-ID cursor from beforeCursor. Without after, returns the nearest older page.
Length
26 <= length <= 26limit?stringEvent-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+)?$ThreadAttachmentPage
application/json- 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"}