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

Request

  • Base URL
    https://api.capy.ai
  • Auth
    HTTP bearer

Path parameters

threadIdstring required

Query parameters

afterstring

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

beforestring

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

limitstring

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.

Response

ThreadAttachmentPage

cursorstring nullable required

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

beforeCursorstring nullable required

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

Changes