POST
/
v2
/
views
/
{view_id}
/
preview
Preview a saved filter view
curl --request POST \
  --url https://api-v2.watchcollect.com/v2/views/{view_id}/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cursor": "<string>",
  "page_size": 100
}
'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "primary_occurrence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "message_timestamp_ms": 123,
      "first_seen_at_ms": 123,
      "last_seen_at_ms": 123,
      "sender": {
        "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "phone_number": "<string>",
        "lid": "<string>",
        "display_name": "<string>",
        "country_prefix": "<string>"
      },
      "group_names": [
        "<string>"
      ],
      "group_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "group_count": 123,
      "occurrence_count": 123,
      "has_media": true,
      "is_edited": true,
      "is_revoked": true,
      "message_text": "<string>",
      "primary_media_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "primary_media_url": "<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

view_id
string<uuid>
required

Body

application/json
cursor
string
page_size
integer
Required range: 1 <= x <= 200

Response

Cursor page for the saved view.

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