Messaging · iMessage

List iMessage audience

Returns iMessage audience, one page at a time.

GEThttps://api.pozy.ai/v1/imessage/audience
listImessageAudience

Guide: iMessage

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Authentication

Query parameters

NameTypeNotes
accountIdstring
statusstringOne of subscribed, unsubscribed
searchstringUp to 120 characters
limitintegerDefault 501 to 200
skipintegerDefault 0At least 0

Example

curl -X GET "https://api.pozy.ai/v1/imessage/audience?limit=50" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • contactsarray of object
    9 child fields
    • conversationIdstring
    • accountIdstring
    • contactstring
    • namestring

      Can be null.

    • subscribedboolean
    • lastMessagestring

      Can be null.

    • lastMessageAtstring (date-time)

      Can be null.

    • firstSeenAtstring (date-time)

      Can be null.

    • optInobject

      Can be null.

      2 child fields
      • atstring (date-time)
      • parametersobject
  • totalinteger
  • limitinteger
  • skipinteger
200 response
{
  "contacts": [
    {
      "conversationId": "6e525f3820fc636aa96d2ee9",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "contact": "string",
      "name": "Acme",
      "subscribed": true,
      "lastMessage": "Hello from Pozy",
      "lastMessageAt": "2026-10-02T09:00:00.000Z",
      "firstSeenAt": "2026-10-02T09:00:00.000Z",
      "optIn": {
        "at": "2026-10-02T09:00:00.000Z",
        "parameters": {}
      }
    }
  ],
  "total": 42,
  "limit": 1,
  "skip": 1
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in iMessage