Creating New Broadcast Campaign

Ashley Parks -

POST /api/v2/lists

Parameters

NameDescription
list[name] List name
list[message_yes] API Opt-In Confirmation Request
list[message_help] HELP Response
list[message_stop] STOP Response
list[message_reply] REPLY Response
list[message_already_subscribed] Already Subscribed Response
list[first_optin_message] First Opt In Message
list[second_optin_message] Second Opt In Message
list[email_digest] Email to send email digest to. Leave blank if you dont want to receive
list[email_subscribe] Email to send subscribe notifications to. Leave blank if you dont want to receive
list[email_unsubscribe] Email to send unsubscribe notifications to. Leave blank if you dont want to receive

Request

Headers

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

Host: example.org
Cookie: 

Route

POST /api/v2/lists

Body

{"list":{"name":"My awesome campaign"}}

cURL

curl "https://app.tatango.com/api/v2/lists" -d '{"list":{"name":"My awesome campaign"}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_lf9VZZDpg41hb7y_2yvAXg \
	-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: "759f0c3409ed6e86d9eec24ac336d3e7"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: fed42f605f7dec79321f4a7f7a020c52
X-Runtime: 0.022945
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 439

Status

201 Created

Body

{"status":"List created","list":{"email_digest":"myemail36@gmail.com","email_subscribe":null,"email_unsubscribe":null,"first_optin_message":"","id":1,"message_already_subscribed":null,"message_help":null,"message_reply":null,"message_stop":null,"message_yes":null,"name":"My awesome campaign","second_optin_message":"","keyword_names":[],"counts":{"subscribers":0,"unsubscribed":0,"cleaned":0},"opt_in_type":"single","opt_in_requests":[]}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.