inboxes > files
List Files
Changed onLists the inbox's files in path order, pending ones included, optionally only those whose path starts with path_prefix. A prefix matches characters, not whole segments: reports/q matches reports/q3.pdf. Items carry no download URL; get a file for one.
The list is read in the region that serves the request, so a file created or deleted a moment ago may not show yet. Expired files never show.
Requires the file_read permission.
get/v0/inboxes/{inbox_id}/files
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/files
- AuthHTTP bearer
Path parameters
inbox_idstring required
The ID of the inbox.
Query parameters
path_prefixstring
Only files whose path starts with this. Held to the path rules, except it may stop partway.
limitinteger
Limit of number of items returned.
Page size, 100 by default and at most 500.
page_tokenstring
Page token for pagination.
ascendingboolean
Path order, true by default. false lists in reverse.
Response
Response with status 200
Changes
- info
endpoint added
- info