POST
/
chat
/
archive
cURL
curl --request POST \
  --url https://api.crunchz.app/api/chat/archive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "xxx@c.us"
}'
{
  "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.

Body

application/json
contact_id
string
required

The contact id.

Example:

"xxx@c.us"

Response

ChatCollection

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
ChatResource · object[]
required
meta
object
required