List the org's files
Changed onReturns one page of the org's file library, newest first, with the org's standing usage against its storage quota. Every file carries its source (upload, capture or message) and, for a capture or message attachment, its surface and capture state. Filter with source, surface, session_id, phone_id and media_type, among others. Files persist until deleted and any ready file can be delivered to a phone the org holds.
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
max items per page
pagination offset
filter by filename, case-insensitive substring match
only files of this source
only captures off this surface
only files captured by this session
only files from this phone: attachments on messages it received, and files its sessions captured
only files of exactly this media type
only images or only videos, whatever their exact media type
only files at least this many bytes (0 = no bound)
only files at most this many bytes (0 = no bound)
only files registered at or after this time (RFC 3339)
only files registered at or before this time (RFC 3339)
Sort expression '<field> [asc|desc]', direction defaulting to desc; field is created_at, filename, size_bytes or source (which groups files by source, newest first within each).
Response
OK
Example response
{
"$schema": "/api/v1/FileListResponse.json",
"files": [
{
"$schema": "/api/v1/FileSummary.json"
}
]
}Changes
- warning
deleted the
queryrequest parameterorder - warning
deleted the
queryrequest parameterq - warning
deleted the
queryrequest parametersort - warning
added the new
messageenum value to the//response property for the response status - info
added the new optional
queryrequest parametermedia_type - info
added the new optional
queryrequest parameterorder_by - info
added the new optional
queryrequest parameterphone_id - info
added the new optional
queryrequest parametersearch - info
added the new enum value
messageto thequeryrequest parametersource - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning
- info
endpoint added
- info