POST
/
leads
/
{leadId}
/
resubscribe
cURL
curl --request POST \
  --url https://api.attent.app/v1/leads/{leadId}/resubscribe \
  --header 'x-api-key: <api-key>'
{
  "message": "Lead resubscribed successfully."
}

Notes

This API only works if the lead has unsubscribed via Apten”s smart-unsubscribe feature, or via user-defined custom unsubscribe keywords. Leads who opt-out via a default keyword (e.g. “STOP”, “UNSUBSCRIBE”, “CANCEL”, “END”, “QUIT”, and “STOP ALL”) are ineligible for resubscription. This API also turns Apten on for the lead.

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to resubscribe.

Response

Lead resubscribed successfully.

message
string

Returns "Lead resubscribed successfully." if the lead was resubscribed.