Add a number to the opt-out list
POST
/api/v1/opt-outsLine refuses every later send to the number and cancels queued sends. Needs a live key.
Bearer key, test or live
Request body
phone_numberstringrequiredResponses
201The opt-out.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"
}'