TeaseDocs
DevelopersAPI referenceChats

List chats

The account's chats, the most recently discovered first; `fresh=true` reads the list first. A section whose Read is off in the account's Settings answers `fresh=true` with 409 `read_off` (`section`, `settings_url`, no `retry_after`); `GET /v1/accounts/{account_id}` lists such sections in `reads_off`. Without `fresh`, a page whose chats Read is off says `meta.freshness.list_state: "read_off"`.

Path Parameters

account_id*Account Id
Lengthlength <= 64

Query Parameters

limit?Limit
Range1 <= value <= 1000
Default200
cursor?|null
fresh?Fresh
Defaultfalse
wait?|null

Response Body

application/json

application/json

GET
/v1/accounts/{account_id}/chats
curl -X GET "https://example.com/v1/accounts/string/chats"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}