List a chat's files
GET/v1/profiles/{profile_id}/chats/{chat_id}/attachments
- Scope
messages:read - Pages with
before
Photos and files shared in the chat, newest first. limit and before count messages (before is a message id).
Parameters
Path
profile_idstringrequiredThe line (
prf_…).chat_idstringrequiredThe chat (
cht_…).
Query
limitintegerItems per page, 1–200 (default 50).
beforestringThe
next_beforeof the previous page.
Response
200 OKA page of files.
object"list"requireddataarray of ChatAttachmentrequiredFields of
dataidstringrequiredatt_…file_namestring or nullrequiredmime_typestring or nullrequiredsize_bytesinteger or nullrequiredurlstringrequiredobject"attachment"requiredmessage_idstringrequiredmsg_…direction"inbound" | "outbound"requiredsent_attimestamprequired
has_morebooleanrequiredMore items exist after this page.
next_beforestring or nullrequiredPass as
beforefor the next page; null on the last one.
Errors
| Status | Code | Means |
|---|---|---|
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.