LineDevelopers

Remove an opt-out added through the API

DELETE/api/v1/opt-outs/{phoneNumber}
Bearer key, test or live

Parameters

phoneNumberstring · e164pathrequired

Responses

200The opt-out was removed.
404The opt-out is absent or inaccessible.
409The recipient opted out themselves; only their START reply removes it.
Plus 400, 401, 403, 429, 503. See Errors.
curl -X DELETE 'https://staging.useline.io/api/v1/opt-outs/+447700900456' \
  -H "Authorization: Bearer $LINE_API_KEY"