API reference/Email Unsubscribes
Record an unsubscribe
Opts an address out of all broadcasts, sequences and automated email. Idempotent, so an unsubscribe link can call it on every click without tracking state.
Authorization
AuthorizationRequiredBearer <token>API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
X-API-Key<token>API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
Request Body
application/jsonRequiredemailRequiredstringFormat:
"email"reasonstringsourcestringDefault:
"api"Value in: "website" | "admin" | "api" | "import"contactIdstringOptional. Skips automatic contact resolution when supplied.
Format:
"uuid"Address was already unsubscribed; existing record returned