Track Subscriber Unsubscribe

Log an unsubscribe action from a subscriber for a specific campaign, optionally capturing metadata such as IP address, user agent, and reason.

🚫 Track Subscriber Unsubscribe

Use this endpoint to register an unsubscribe event for a specific subscriber from a campaign.


πŸ”Ή HTTP Request

POST API-URL/campaigns/CAMPAIGN-UNIQUE-ID/track-unsubscribe/SUBSCRIBER-UNIQUE-ID

πŸ”Έ URL Segments

Segment
Required
Description

CAMPAIGN-UNIQUE-ID

Yes

Unique ID of the campaign.

SUBSCRIBER-UNIQUE-ID

Yes

Unique ID of the subscriber.


πŸ“ POST Parameters

Parameter
Required
Description

ip_address

No

IP address of the subscriber.

user_agent

No

User agent string of the subscriber.

reason

No

Optional reason for unsubscribing.


πŸ” Authorization Header

X-API-KEY: your-api-key-here

πŸ’» PHP Example


πŸ“¦ Sample JSON Response