Zum Inhalt springen

Get recipient-level events

GET
/campaigns/{campaignId}/events
Code sample: Shell / cURL
curl --request GET \
--url 'https://rocketem.fotone.io/api/v2/campaigns/example/events?category=opens&per_page=50&page=1' \
--header 'Authorization: Bearer <token>'

Required scope: recipients:read_pii

Recipient-level event drilldown for a campaign, newest first. Responses contain plaintext emails, so this endpoint requires recipients:read_pii on top of recipients:read — without it, 403.

bounces contains hard bounces only; soft_bounces is the separate defer/soft-bounce drilldown. Bounce drilldowns list only recipients whose final state is that bounce flavour (a recipient delivered via retry does not appear). Test sends and bot-flagged events are excluded.

campaignId
required
string

Campaign public_id

category
string
default: opens
Allowed values: opens clicks bounces soft_bounces unsubscribes complaints

Event category to list

per_page
integer
default: 50 >= 1 <= 100
page
integer
default: 1 >= 1

Paginated events (newest first)

Media typeapplication/json
object
data
object
data
Array<object>
object
email
string format: email
event_type
string
url

Clicked URL (clicks only)

string
nullable
link_index
integer
nullable
source
string
nullable
user_agent
string
nullable
ip_address
string
nullable
ab_variant
string
nullable
language
string
nullable
send_number
integer
message_id
string
nullable
event_at

Event timestamp (Y-m-d H:i:s, server time)

string
bounce_sub_type

Bounce classification (bounces only)

string
nullable
dsn_code

DSN status code (bounces only)

string
nullable
bounce_reason

SMTP response / bounce reason (bounces only)

string
nullable
is_bot

Always false here — bot events are excluded

boolean
total

Total events in this category

integer

Example generated

{
"data": {
"data": [
{
"email": "hello@example.com",
"event_type": "example",
"url": "example",
"link_index": 1,
"source": "example",
"user_agent": "example",
"ip_address": "example",
"ab_variant": "example",
"language": "example",
"send_number": 1,
"message_id": "example",
"event_at": "example",
"bounce_sub_type": "example",
"dsn_code": "example",
"bounce_reason": "example",
"is_bot": true
}
],
"total": 1
}
}

Token lacks recipients:read_pii scope

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Resource not found

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Invalid category

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}