Unsubscribe Subscriber

Seva -

DELETE /api/v2/lists/:list_id/subscribers/:phone_number

 

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: Basic dGF0YW5nbzp0YXRhbmdvX2tleV9LRnJkeXV2WTJyeVZYMDU4OVBoWlRR

Host: example.org
Cookie: 

Route

GET /api/v2/lists/1/subscribers/2141234567

cURL

curl "https://app.tatango.com/api/v2/lists/1/subscribers/2141234567" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_KFrdyuvY2ryVX0589PhZTQ \
	-H "Host: example.org" \
	-H "Cookie: "

 

Response

Headers

Content-Type: application/json; charset=utf-8
X-Meta-Request-Version: 0.2.6
Content-Security-Policy: default-src https: 'self'; connect-src http: https: 'self' wss://*.intercom.io; img-src https: 'self'; script-src 'self' *.intercom.io *.intercomcdn.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; report-uri /uri-directive
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=Edge,chrome=1
ETag: "0b7133f480418778642c73562296ae2d"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 17e6141216237c178c856762534dd5af
X-Runtime: 0.026519
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 244

Status

200 OK

Body

{"status":"successfully unsubscribed",
"subscriber": {
"phone_number":"2141234567",
"first_name":"",
"last_name":"",
"email":"",
"dob":"",
"zip_code":"",
"gender":null,
"cleaned_at":null,
"subscribed_at":"2016-08-04T16:00:00-07:00",
"opted_out_at":"2016-08-04T16:00:00-07:00",
"optin_in_progress":true,
"opt_in_method": "Keyword",
"keyword_name": "Test",
"carrier": 383,
"tags": []
}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.