Skip to content
Internal: only for Sendwing’s own apps (the web app, admin). It may change at any time.

Get a campaign’s report

GET
/api/organizations/{organizationId}/campaigns/{campaignId}/report
curl --request GET \
--url https://api.sendwing.app/api/organizations/example/campaigns/example/report \
--header 'x-api-key: <x-api-key>'

Its results so far. opened and clicked count each recipient once, opens and clicks count repeats. Rates are of delivered emails, except bounces and complaints, which are of sent ones.

organizationId
required
string

The workspace, like org_…. An OAuth access token works in the one the member picked when connecting, which GET /me returns.

campaignId
required
string

Like cmp_…

The report

Media typeapplication/json
object
recipients
required

How many contacts it’s sent to; 0 before it starts sending

integer
>= -9007199254740991 <= 9007199254740991
queued
required

Not sent yet

integer
>= -9007199254740991 <= 9007199254740991
sent
required

Accepted for delivery

integer
>= -9007199254740991 <= 9007199254740991
failed
required

Couldn’t be sent

integer
>= -9007199254740991 <= 9007199254740991
skipped
required

Not sent, like when the campaign was canceled

integer
>= -9007199254740991 <= 9007199254740991
delivered
required

Reached the inbox server

integer
>= -9007199254740991 <= 9007199254740991
opened
required

Recipients who opened it

integer
>= -9007199254740991 <= 9007199254740991
opens
required

Opens, repeats included

integer
>= -9007199254740991 <= 9007199254740991
clicked
required

Recipients who clicked a link

integer
>= -9007199254740991 <= 9007199254740991
clicks
required

Clicks, repeats included

integer
>= -9007199254740991 <= 9007199254740991
bounced
required

Recipients whose email bounced

integer
>= -9007199254740991 <= 9007199254740991
complained
required

Recipients who reported it as spam

integer
>= -9007199254740991 <= 9007199254740991
unsubscribed
required

Recipients who unsubscribed from it

integer
>= -9007199254740991 <= 9007199254740991
rates
required

Fractions from 0 to 1, to four decimal places

object
open
required

Of delivered

number
<= 1
click
required

Of delivered

number
<= 1
unsubscribe
required

Of delivered

number
<= 1
bounce
required

Of sent, the measure mailbox providers use

number
<= 1
complaint
required

Of sent, the measure mailbox providers use

number
<= 1

Example generated

{
"recipients": 1,
"queued": 1,
"sent": 1,
"failed": 1,
"skipped": 1,
"delivered": 1,
"opened": 1,
"opens": 1,
"clicked": 1,
"clicks": 1,
"bounced": 1,
"complained": 1,
"unsubscribed": 1,
"rates": {
"open": 1,
"click": 1,
"unsubscribe": 1,
"bounce": 1,
"complaint": 1
}
}

The request isn’t valid; issues lists each problem

Media typeapplication/json
object
error
required

What went wrong, in words you can show people

string
issues

For a 400, each invalid field of the request; for a 422, what to fix first

Array<object>
object
path
required

The field, like events.0.name in the request or subject of what it acts on

string
message
required
string
requestId

For a 5xx: quote it when contacting support

string

Example generated

{
"error": "example",
"issues": [
{
"path": "example",
"message": "example"
}
],
"requestId": "example"
}

The API key or access token is missing, invalid or expired

Media typeapplication/json
object
error
required

What went wrong, in words you can show people

string
issues

For a 400, each invalid field of the request; for a 422, what to fix first

Array<object>
object
path
required

The field, like events.0.name in the request or subject of what it acts on

string
message
required
string
requestId

For a 5xx: quote it when contacting support

string

Example generated

{
"error": "example",
"issues": [
{
"path": "example",
"message": "example"
}
],
"requestId": "example"
}

The API key’s permissions, or the app’s scopes and the member’s role, don’t allow this

Media typeapplication/json
object
error
required

What went wrong, in words you can show people

string
issues

For a 400, each invalid field of the request; for a 422, what to fix first

Array<object>
object
path
required

The field, like events.0.name in the request or subject of what it acts on

string
message
required
string
requestId

For a 5xx: quote it when contacting support

string

Example generated

{
"error": "example",
"issues": [
{
"path": "example",
"message": "example"
}
],
"requestId": "example"
}

Not found in this workspace

Media typeapplication/json
object
error
required

What went wrong, in words you can show people

string
issues

For a 400, each invalid field of the request; for a 422, what to fix first

Array<object>
object
path
required

The field, like events.0.name in the request or subject of what it acts on

string
message
required
string
requestId

For a 5xx: quote it when contacting support

string

Example generated

{
"error": "example",
"issues": [
{
"path": "example",
"message": "example"
}
],
"requestId": "example"
}

Too many requests; wait for the seconds in Retry-After

Media typeapplication/json
object
error
required

What went wrong, in words you can show people

string
issues

For a 400, each invalid field of the request; for a 422, what to fix first

Array<object>
object
path
required

The field, like events.0.name in the request or subject of what it acts on

string
message
required
string
requestId

For a 5xx: quote it when contacting support

string

Example generated

{
"error": "example",
"issues": [
{
"path": "example",
"message": "example"
}
],
"requestId": "example"
}