GET
/
chat
/
sessions
/
{session_id}
/
history
curl --request GET \
  --url https://api.open.cx/chat/sessions/{session_id}/history \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "event": {
        "type": "message",
        "sender": {
          "type": "contact"
        },
        "content": {
          "type": "text",
          "text": "<string>"
        }
      }
    }
  ],
  "next": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Query Parameters

cursor
string

Pagination cursor to fetch the next set of results

Response

200
application/json

Paginated response.

items
object[]
required
next
string | null
required

The cursor for the request to get the next set of items. Null if there is no more data.