List Files For Agent
Get the files attached to an agent with their open/closed status.
Authentication
AuthorizationBearer
Header authentication of the form Bearer <token>
Path parameters
agent_id
The ID of the agent in the format ‘agent-<uuid4>’
Query parameters
before
File ID cursor for pagination. Returns files that come before this file ID in the specified sort order
after
File ID cursor for pagination. Returns files that come after this file ID in the specified sort order
limit
Maximum number of files to return
order
Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest first
Allowed values:
order_by
Field to sort by
cursorDeprecated
Pagination cursor from previous response (deprecated, use before/after)
is_open
Filter by open status (true for open files, false for closed files)
Response
Successful Response
files
List of file attachments for the agent
has_more
Whether more results exist after this page
next_cursor
Cursor for fetching the next page (file-agent relationship ID)