Skip to content

List Canned Files

GET/v1/conversations/canned-files

Returns a paginated list of canned files available in the workspace. Use a canned file id as fileId when sending media session messages.

Query Parameters

searchstring

Filter canned files by name

Example:invoice
fileTypesarray

Filter by MIME type(s)

Example:image/jpeg,application/pdf
maxSizenumber

Maximum file size in MB

Example:5
pageinteger
Example:1
limitinteger
Example:10
sortBystring
Example:createdAt
sortOrderstring
Example:desc

Responses

Body

success_codeenum: 200 | 201•Numeric success code matching the HTTP response status. required
Example:200
messagestring required
Example:OK
detailsobject required
dataarray[object] required
_idstring
Example:60faaaaaa7890abcdef12345
namestring
Example:Invoice template
descriptionstring or null
Example:Standard invoice PDF
workspaceIdstring
Example:9e69c76a-683d-44f9-a314-3be15c98aebb
uploadedFileobject
idstring
Example:60fbbbbbb7890abcdef12345
originalNamestring
Example:invoice.pdf
fileTypestring
Example:application/pdf
sizenumber
Example:0.25
presignedUrlstring
Example:https://example.com/presigned
createdByobject
idstring
namestring
isDeletedboolean
metaobject
error_codeinteger•Numeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobject•Validation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required
error_codeinteger•Numeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobject•Validation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required
error_codeinteger•Numeric error code matching the HTTP response status. required
Example:400
messagestring required
detailsobject•Validation errors are returned as a field-to-messages map; other errors may use arbitrary keys. required