Case attachments
List the files of a case
Newest first.
Required scope: cases:read.
path Parameters
id^cse_[0-9A-Za-z]{22}… · requiredThe id of the case (cse_…).
query Parameters
limitcursorThe nextCursor of the previous page, with the same filters.
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
List the files of a case › Responses
objecthasMorenextCursorUpload a file to a case
Multipart, with the file in the file field. PDF, images, Word, Excel, CSV, XML and text, up to 10 MB.
Required scope: cases:write.
path Parameters
id^cse_[0-9A-Za-z]{22}… · requiredThe id of the case (cse_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Idempotency-KeyMakes the request safe to retry. Once it starts running, its final response (2xx, 4xx or 5xx) is kept for 24 hours and the same key gets it back, without repeating the effect. A request rejected before it runs leaves the key free. A replayed create omits the secret. The same key with a different request is rejected with 409 idempotency_key_reused.
Upload a file to a case › Responses
objectidcaseIdfilenamemimeTypesizeBytessourcemanual is uploaded by API or by the team.
createdAtRetrieve a file of a case
Returns one file of a case by id. Use it to refresh a single record you already know; to find records, use the list route. To get the bytes, use the download route of the file. Read only. 404 not_found when the id does not exist or belongs to another organization. You can repeat it safely: it has no side effects.
Required scope: cases:read.
path Parameters
id^cse_[0-9A-Za-z]{22}… · requiredThe id of the case (cse_…).
attachmentId^att_[0-9A-Za-z]{22}… · requiredThe id of the attachment (att_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Retrieve a file of a case › Responses
objectidcaseIdfilenamemimeTypesizeBytessourcemanual is uploaded by API or by the team.
createdAtDelete a file of a case
Deletes a file attached to a case. Messages that already carried it keep their record. The effect is permanent through the API. Repeating the call returns 404 not_found, because the file no longer exists, so do not retry a 404 as a failure.
Required scope: cases:write.
path Parameters
id^cse_[0-9A-Za-z]{22}… · requiredThe id of the case (cse_…).
attachmentId^att_[0-9A-Za-z]{22}… · requiredThe id of the attachment (att_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Delete a file of a case › Responses
Get the download link of a file
A signed link that lasts 10 minutes. Ask again for a new one.
Required scope: cases:read.
path Parameters
id^cse_[0-9A-Za-z]{22}… · requiredThe id of the case (cse_…).
attachmentId^att_[0-9A-Za-z]{22}… · requiredThe id of the attachment (att_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Get the download link of a file › Responses
objecturlA signed link. Open it before expiresAt.
expiresAt