Skip to main content
GET
/
chat
/
sessions
/
search
Search contacts and messages
curl --request GET \
  --url https://api.open.cx/chat/sessions/search \
  --header 'Authorization: Bearer <token>'
{
  "contacts": [
    {
      "id": "<string>",
      "name": "<string>",
      "email": "<string>",
      "phone": "<string>"
    }
  ],
  "messages": [
    {
      "id": "<string>",
      "session_id": "<string>",
      "message": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

q
string
required

Search query (a name, email, phone, or keyword)

Minimum string length: 1

Response

Default Response

contacts
object[]
required
messages
object[]
required