Recipients a campaign

GET/api/v1/campaigns/{campaign}/recipients
Requires anorganization API keywith the scopecampaigns:read

Parameters

NameInTypeDescription
campaignrequiredpathstringThe campaign identifier.
statusquerystringOnly recipients with this status: pending, sent, failed, skipped_suppressed, skipped_unsubscribed, skipped_invalid (the address does not exist, found before sending) or skipped_inbox_full (the inbox was full, so marketing is held for 7 days).
engagementquerystringopened, not_opened or clicked.
searchquerystringMatches the recipient's email.
per_pagequeryintegerPage size, 1–100. Default 25.

Request

GET/api/v1/campaigns/{campaign}/recipients
curl -X GET 'https://app.mailyte.com/api/v1/campaigns/01JBT8XQ2M9WYC3K4F6R7S8T9V/recipients' \
  -H 'Authorization: Bearer mk_live_YOUR_API_KEY'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Success.

  • dataobject
    • dataarray<object>
      • objectstringcampaign_recipient
      • idstring

        Unique identifier for the recipient row.

      • emailstring
      • contact_idstring

        Null for an address that reached the campaign without a contact row behind it.

      • statusstringpending | sent | failed | skipped_suppressed | skipped_unsubscribed | skipped_invalid | skipped_inbox_full | unknown

        What happened to this recipient. - pending: not attempted yet. - sent: handed to the mail server. - failed: see error. - skipped_suppressed: on your suppression list. - skipped_unsubscribed: unsubscribed. - skipped_invalid: the address does not exist, found before sending. - skipped_inbox_full: the inbox was full, so marketing to this person is held for 7 days.

      • errorstring

        What went wrong, for a person to read. Do not parse it. Null when nothing went wrong.

      • sent_atstring

        When the message was handed to the mail server. This is not delivery. Set only when status is sent; read status first.

      • opened_atstring

        When this recipient first opened the email. Null when no open has been seen.

      • clicked_atstring

        When this recipient first clicked a link. Null when no click has been seen.

    • pagination_metaany

Returned inside the standard envelope.

Errors

StatusWhen
401The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist.
403The key is valid but may not do this: it lacks the required scope, its IP allowlist does not include you, or this endpoint does not accept API keys.
404No such resource in this organization.
422The request was understood but the values were not acceptable.
429Too many requests, or the organization has spent its sending allowance. `Retry-After` says how long to wait.

Every status, with what causes it and what to do, is on the error reference.