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

Response

200
application/json

ChatCollection

The response is of type object.