Skip to main content
GET
/
api
/
v1
/
chats
List chats
curl --request GET \
  --url https://app.sure.am/api/v1/chats \
  --header 'X-Api-Key: <api-key>'
{
  "chats": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "message_count": 1,
      "error": "<string>",
      "last_message_at": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 2,
    "per_page": 2,
    "total_count": 1,
    "total_pages": 1
  }
}

Authorizations

X-Api-Key
string
header
required

API key for authentication. Generate one from your account settings.

Response

chats listed

chats
object[]
required
pagination
object
required