Skip to main content
POST
cURL

Notes

Resubscribes a lead to one or more channels they previously unsubscribed from. Pass a channels array (sms, voice, email) in the request body to target specific channels. When channels is omitted, Apten resubscribes every channel the lead can actually receive: SMS and voice if the lead has a phone number, email if the lead has an email address. The 200 response channels array is the set that was applied, not the set that was requested. A lead with a phone number and no email who sends {} is resubscribed on SMS and voice, and the response is ["sms", "voice"]. When SMS consent cannot be completed, requests that include other available channels still succeed for those channels. The response is 200, channels lists only the channels successfully resubscribed, and failedChannels lists the channels that could not be resubscribed, including whether the failure is retryable. For an SMS-only request, the API returns 502 or 503. SMS remains unsubscribed, and no SMS opt-in event or phone-number DNC removal is applied. If every requested channel is missing on the lead, the request fails with a 400. An explicit {"channels":["email"]} on a lead with no email returns Lead has no email. An explicit request that includes at least one reachable channel still succeeds for those channels. Side effects:
  • Clears the lead’s do-not-contact status, if set.
  • Removes the lead’s phone number from your Do Not Contact (DNC) list when SMS is resubscribed.
  • Emits an opt-in webhook event for each channel that transitions from unsubscribed to subscribed.
This API does not change whether Apten is on for the lead. If you previously turned the lead off, also call Turn on a lead to resume messaging.

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to resubscribe.

Body

application/json

Channels to resubscribe. Optional; when omitted, defaults to every channel the lead can receive.

channels
enum<string>[]

The channels to resubscribe the lead to. When omitted, Apten resubscribes every channel the lead can receive (phone → sms and voice, email → email).

Minimum array length: 1
Available options:
sms,
voice,
email

Response

Lead resubscribed successfully, potentially with partial success.

message
string

Returns "Lead resubscribed successfully." when all requested channels are resubscribed, or "Lead resubscribed with partial success." when one or more channels could not be resubscribed.

channels
enum<string>[]

The channels that were applied. Channels the lead cannot receive (no phone or no email) are omitted.

Available options:
sms,
voice,
email
failedChannels
object[]

Channels that could not be resubscribed. Present only when the response is a partial success.