API


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

Notes about the API

POST /api/subscribe/:listId – Add subscription

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.

GET arguments

POST arguments

Additional POST arguments:

Example

curl -XPOST {{serviceUrl}}api/subscribe/B16uVTdW?access_token={{accessToken}} \
--data 'EMAIL=test@example.com&MERGE_CHECKBOX=yes&REQUIRE_CONFIRMATION=yes'

POST /api/unsubscribe/:listId – Remove subscription

This API call marks a subscription as unsubscribed

GET arguments

POST arguments

Example

curl -XPOST {{serviceUrl}}api/unsubscribe/B16uVTdW?access_token={{accessToken}} \
--data 'EMAIL=test@example.com'

POST /api/delete/:listId – Delete subscription

This API call deletes a subscription

GET arguments

POST arguments

Example

curl -XPOST {{serviceUrl}}api/delete/B16uVTdW?access_token={{accessToken}} \
--data 'EMAIL=test@example.com'

POST /api/field/:listId – Add new custom field

This API call creates a new custom field for a list.

GET arguments

POST arguments

Example

curl -XPOST {{serviceUrl}}api/field/B16uVTdW?access_token={{accessToken}} \
--data 'NAME=Birthday&TYPE=birthday-us&VISIBLE=yes'