Adding Multiple Tags to Multiple Subscribers

Ashley Parks -

NOTES:

  1. This API call will add tags, not replace existing tags.
  2. This API call is limited to updating up to 100 phone numbers.
  3. This API call will update all phone numbers, no matter what their state is.
  4. If a phone number is not found, it will ignore that specific request, but will still continue to update the phone numbers that are present on a list.

 

POST /api/v2/lists/:list_id/subscribers/add_tags

Parameters

Name Description

phone_numbers Phone numbers of subscribers

tags Array of tags to add

Request

Headers

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

Host: example.org
Cookie: 

Route

POST /api/v2/lists/21/subscribers/add_tags

Body

{"phone_numbers":["2145550762","7185550549","2125550838"],"tags":["some","funky","tagnames"]}

cURL

curl "https://app.tatango.com/api/v2/lists/21/subscribers/add_tags" -d '{"phone_numbers":["2145550762","7185550549","2125550838"],"tags":["some","funky","tagnames"]}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_cAvt1l32kHLmLuFD80Vfyg \
	-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 http: https: 'self' '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: "d1d7aae78cb5b53bffabe164f5662fdc"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 07f415a7c713aca34c4357b2258ad318
X-Runtime: 0.036917
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 30

Status

200 OK

Body

{"status":"Tags were applied"}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.