List thread attachments
Lists files attached by users or delivered by the agent in a thread, paged in both directions with after and before cursors up to 200 events.
bearerAuthAuthorizationBearer <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.
26 <= length <= 26before?stringExclusive backward event-ID cursor from beforeCursor. Without after, returns the nearest older page.
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.
^[+-]?\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/{threadId}/attachments" \ -H "Authorization: Bearer $CAPY_API_KEY"{ "items": [ { "id": "string", "name": "string", "mediaType": "string", "sizeBytes": 0, "title": "string", "messageId": "string", "source": "user", "createdAt": "string" } ], "cursor": "string", "beforeCursor": "string"}