Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Delete a subscription by contact key

DELETE
/api/v3/contacts/keyed/{contactKey}/subscriptions/{channel}
curl --request DELETE \
--url https://api.tryletterhead.com/api/v3/contacts/keyed/example/subscriptions/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api": true }'

Same as Delete a subscription (DELETE /api/v3/contacts/{email}/subscriptions/{channelSlug}), with the contact addressed by its contactKey instead of its email address.

contactKey
required
string

The contact’s opaque 64-character hex key.

channel
required
string

The newsletter’s channel identifier (slug). The {channel} segment accepts either a channel slug or a numeric channel id (legacy callers).

Media type application/json
object
api

Required. Set to true to authenticate with an API key.

boolean
Example
{
"api": true
}

200 OK. Same shape as GET /api/v3/contacts/{email}.

Media type application/json
object
items

The contact, with the subscription removed. Full field list under GET /api/v3/contacts/{email}.

object
message
string
total
integer
Example generated
{
"items": {},
"message": "example",
"total": 1
}

Still can’t find what you need? Contact support.