{{accessToken}}
{{else}}
{{#translate}}Access token not yet generated{{/translate}}
{{/if}}
error
and data
properties. If the response error
has a value set then the request failed.{{/translate}}
Content-Type
when making a request. You can either use application/x-www-form-urlencoded
for normal form data or application/json
for a JSON payload. Using multipart/form-data
is not supported.{{/translate}}
{{#translate}}Retrieve a list of subscriptions to the list referenced by :listId. All fields of the subscribers will be returned. Note that custom fields will have generated names.{{/translate}}
GET {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XGET '{{serviceUrl}}api/subscriptions/B16uVTdW?access_token={{accessToken}}&limit=10&start=0'
{{#translate}}This API call either inserts a new subscription or updates existing. Fields not included are left as is, so if you update only LAST_NAME value, then FIRST_NAME is kept untouched for an existing subscription.{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Additional POST arguments{{/translate}}:
{{#translate}}Example{{/translate}}
curl -XPOST {{serviceUrl}}api/subscribe/B16uVTdW?access_token={{accessToken}} \ --data 'EMAIL=test@example.com&MERGE_CHECKBOX=yes&REQUIRE_CONFIRMATION=yes'
{{#translate}}This API call marks a subscription as unsubscribed{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XPOST {{serviceUrl}}api/unsubscribe/B16uVTdW?access_token={{accessToken}} \ --data 'EMAIL=test@example.com'
{{#translate}}This API call deletes a subscription{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XPOST {{serviceUrl}}api/delete/B16uVTdW?access_token={{accessToken}} \ --data 'EMAIL=test@example.com'
{{#translate}}This API call creates a new custom field for a list.{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XPOST {{serviceUrl}}api/field/B16uVTdW?access_token={{accessToken}} \ --data 'NAME=Birthday&TYPE=birthday-us&VISIBLE=yes'
{{#translate}}This API call get list of blacklisted emails.{{/translate}}
GET {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XGET '{{serviceUrl}}api/blacklist/get?access_token={{accessToken}}&limit=10&start=10&search=gmail'
{{#translate}}This API call either add emails to blacklist{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XPOST '{{serviceUrl}}api/blacklist/add?access_token={{accessToken}}' \ --data 'EMAIL=test@example.com&'
{{#translate}}This API call either delete emails from blacklist{{/translate}}
GET {{#translate}}arguments{{/translate}}
POST {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XPOST '{{serviceUrl}}api/blacklist/delete?access_token={{accessToken}}' \ --data 'EMAIL=test@example.com&'
{{#translate}}Retrieve the lists that the user with :email has subscribed to. {{/translate}}
GET {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XGET '{{serviceUrl}}api/lists/test@example.com?access_token={{accessToken}}
{{#translate}}Retrieve every list. {{/translate}}
GET {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XGET '{{serviceUrl}}api/lists?access_token={{accessToken}}'
{{#translate}}Retrieve the list with :id {{/translate}}
GET {{#translate}}arguments{{/translate}}
{{#translate}}Example{{/translate}}
curl -XGET '{{serviceUrl}}api/list/1?access_token={{accessToken}}'