Remove contacts or accounts from a campaign
Stops the campaign for the given contacts, or for every contact linked to the given accounts. Future-dated enrollments are cancelled; active ones are ended and their pending sends are skipped. Contacts that are not active in the campaign are ignored, so the call is safe to retry. Works on paused campaigns; not available for scheduled (newsletter) campaigns.
Stops the campaign for the given contacts, or for every contact linked to the given accounts. Future-dated enrollments are cancelled; active ones are ended and their pending sends are skipped. Contacts that are not active in the campaign are ignored, so the call is safe to retry. Works on paused campaigns; not available for scheduled (newsletter) campaigns.
Authorization
apiKey In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/enrollments/remove" \ -H "Content-Type: application/json" \ -d '{}'{
"removed": 0,
"contactIds": [
"42c382fb-14d8-48d9-b3ff-0b7917436af9"
]
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}List campaigns GET
Returns a paginated list of campaigns for the authenticated organization.
Send a campaign step as a test POST
Renders a saved email step for the given contact exactly as a real send would (template variables, AI content, tracking and unsubscribe settings) and delivers it to `recipientEmail` instead of the contact. `recipientEmail` must belong to an active user in your organization. Works on draft campaigns. Nothing is recorded against the contact. Uses one of the campaign's sending inboxes, so it counts toward that inbox's daily limit.