Skip to content

Get delivery and engagement for one mailing

On this page
GET/v1/mailings/{mailing_id}/statsget_mailing_stats
Riskread
AuthenticationAPI key or OAuth access token
Scopesstats:read
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/json

What it does#

  • Use when: You report how a sent mailing performed: delivered, bounced, opened, clicked.
  • Do not use when: the mailing is a draft or you need totals across mailings (call get_stats_overview).
  • Side effects: None.
  • Reversible: Not applicable, nothing changes.
  • Required scope: stats:read.
  • Idempotency: safe to repeat.
  • Typical next step: call list_mailing_links for click detail.

Scopes#

  • stats:read: Read sending and growth statistics.

Request#

Path parameters#

FieldTypeDescription
mailing_idstring

Query parameters#

None.

Every read also accepts fields=a,b,c to return only those top-level fields.

Response#

FieldTypeRequiredDescription
mailing_idstringyes
statusstringyes
total_recipientsinteger, min -9007199254740991, max 9007199254740991yes
batchesobjectyes
batches.totalinteger, min -9007199254740991, max 9007199254740991yes
batches.reservedinteger, min -9007199254740991, max 9007199254740991yes
batches.sentinteger, min -9007199254740991, max 9007199254740991yes
batches.unknowninteger, min -9007199254740991, max 9007199254740991yes
batches.failedinteger, min -9007199254740991, max 9007199254740991yes
recipientsobjectyes
recipients.pendinginteger, min -9007199254740991, max 9007199254740991yes
recipients.sentinteger, min -9007199254740991, max 9007199254740991yes
recipients.unknowninteger, min -9007199254740991, max 9007199254740991yes
recipients.failedinteger, min -9007199254740991, max 9007199254740991yes
recipients.skippedinteger, min -9007199254740991, max 9007199254740991yes
deliveryobjectyes
delivery.deliveredinteger, min -9007199254740991, max 9007199254740991yes
delivery.bouncedinteger, min -9007199254740991, max 9007199254740991yes
delivery.complainedinteger, min -9007199254740991, max 9007199254740991yes
delivery.soft_bouncedinteger, min -9007199254740991, max 9007199254740991yes
delivery.rejectedinteger, min -9007199254740991, max 9007199254740991yes
openedinteger, min -9007199254740991, max 9007199254740991yesFirst-party open pixel, distinct readers
clickedinteger, min -9007199254740991, max 9007199254740991yesDistinct readers who clicked a tracked link

Examples#

sent#

Request:

curl 'https://api.seemly.com/v1/mailings/cmp_0123456789abcdefghjkmnpq/stats' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"

Response: 200:

JSON
{
  "mailing_id": "cmp_0123456789abcdefghjkmnpq",
  "status": "sent",
  "total_recipients": 100,
  "batches": {
    "total": 1,
    "reserved": 0,
    "sent": 1,
    "unknown": 0,
    "failed": 0
  },
  "recipients": {
    "pending": 0,
    "sent": 100,
    "unknown": 0,
    "failed": 0,
    "skipped": 0
  },
  "delivery": {
    "delivered": 98,
    "bounced": 1,
    "complained": 0,
    "soft_bounced": 1,
    "rejected": 0
  },
  "opened": 60,
  "clicked": 12
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.