GET
/
v2
/
messages
/
{canonical_message_id}
/
occurrences
List WAHA occurrences for one canonical message
curl --request GET \
  --url https://api-v2.watchcollect.com/v2/messages/{canonical_message_id}/occurrences \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "canonical_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "waha_message_id": "<string>",
      "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "waha_session_name": "<string>",
      "session_label": "<string>",
      "group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "waha_group_id": "<string>",
      "group_name": "<string>",
      "sender": {
        "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "phone_number": "<string>",
        "lid": "<string>",
        "display_name": "<string>",
        "country_prefix": "<string>"
      },
      "sender_raw_id": "<string>",
      "message_timestamp_ms": 123,
      "has_media": true,
      "media_asset_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "is_edited": true,
      "is_revoked": true,
      "source_event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at_ms": 123,
      "updated_at_ms": 123,
      "message_text": "<string>"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

canonical_message_id
string<uuid>
required

Query Parameters

cursor
string
page_size
integer
default:50
Required range: 1 <= x <= 200

Response

Cursor page of WAHA message occurrences.

items
object[]
required
has_more
boolean
required
next_cursor
string | null