{{#translate}}API{{/translate}}


{{#if accessToken}} {{#translate}}Personal access token:{{/translate}} {{accessToken}} {{else}} {{#translate}}Access token not yet generated{{/translate}} {{/if}}

{{#translate}}Notes about the API{{/translate}}

POST /api/subscribe/:listId – {{#translate}}Add subscription{{/translate}}

{{#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'

POST /api/unsubscribe/:listId – {{#translate}}Remove subscription{{/translate}}

{{#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'

POST /api/delete/:listId – {{#translate}}Delete subscription{{/translate}}

{{#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'

GET /api/blacklist/get – {{#translate}}Get list of blacklisted emails{{/translate}}

{{#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' 

POST /api/blacklist/add – {{#translate}}Add email to blacklist{{/translate}}

{{#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&'

POST /api/blacklist/delete – {{#translate}}Delete email from blacklist{{/translate}}

{{#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&'