LineDevelopers

Add a number to the opt-out list

POST/api/v1/opt-outs

Line refuses every later send to the number and cancels queued sends. Needs a live key.

Bearer key, test or live

Request body

phone_numberstringrequired

Responses

201The opt-out.
Plus 400, 401, 403, 429, 503. See Errors.
curl -X POST 'https://staging.useline.io/api/v1/opt-outs' \
  -H "Authorization: Bearer $LINE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "phone_number": "+447700900456"
  }'