GET
/
chat
/
detail
cURL
curl --request GET \
  --url https://api.crunchz.app/api/chat/detail \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": [
    {
      "message_id": "<string>",
      "from_me": "<string>",
      "is_media": true,
      "body": "<string>",
      "status": "<string>",
      "reactions": [
        "<string>"
      ],
      "timestamp": "<string>"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 50,
    "total": 150,
    "total_pages": 3,
    "has_next_page": true,
    "has_prev_page": false
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

contact_id
string
required

The contact id.

limit
integer

Limit (optional, default: 50, min: 1, max: 100)

Required range: 1 <= x <= 100
offset
integer

Offset (optional, default: 0, min: 0)

Required range: x >= 0

Response

ChatCollection

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
ChatResource · object[]
required
meta
object
required