Email API
API docs
https://email.infopromo.digital/frontend/docs/api/v1 link
API Endpoint
https://email.infopromo.digital/api/v1
Your API token
{Obtain it from your email portal}
You need to add parameter api_token=YOUR_API_TOKEN to each request to the API system
Example: https://email.infopromo.digital/api/v1/lists?api_token=YOUR_API_TOKEN
AUTHENTICATION
HTTP method | Endpoint | Function |
---|---|---|
POST | Generate one time login token | |
Returns Token string | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/login-token \ -d api_token=(YOUR API TOKEN) User can login by visiting the following URL: https://email.infopromo.digital/login/token/*|token_string|* |
LISTS
HTTP method | Endpoint | Function |
---|---|---|
POST | New list | |
Parameters
Returns Creation messages in json | Example: curl -X POST -H “accept: application/json” -G \ | |
GET | Get information about all lists | |
Returns List of all user’s mail lists in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists \ | |
GET | Get information about a specific list | |
Returns All list informations in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{uid} \ | |
POST | Add custom field to list | |
Parameters
Returns Creation messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{uid}/add-field \ | |
DELETE | Delete a list | |
Parameters
Returns Result messages in json | Example: curl -X DELETE -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{uid} \ |
CAMPAIGNS
HTTP method | Endpoint | Function |
---|---|---|
GET | Get information about all campaigns | |
Returns List of all user’s campaigns in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns \ | |
POST | Add new campaign | |
Parameters
Returns New campaign’s information in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns \ | |
GET | Get information about a specific campaign | |
Returns Campaign’s information in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid} \ | |
PATCH | Update campaign | |
Parameters
Returns New campaign’s information in json | Example: curl -X PATCH -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid} \ | |
POST | Run a specific campaign | |
Returns Action messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid}/run \ | |
POST | Pause a specific campaign | |
Returns Action messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid}/pause \ | |
POST | Resume a specific campaign | |
Returns Action messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid}/resume \ | |
DELETE | Delete a campaign | |
Parameters
Returns Result messages in json | Example: curl -X DELETE -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/campaigns/{uid} \ |
SUBSCRIBERS
HTTP method | Endpoint | Function |
---|---|---|
GET | /api/v1/subscribers | Display list’s subscribers |
Parameters
Returns List of all list’s subscribers in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers \ | |
POST | /api/v1/subscribers | Create subscriber for a mail list |
Parameters
Returns Creation messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers \ | |
GET | /api/v1/subscribers/{uid} | Get information about a specific subscriber |
Parameters
Returns All subscriber information in json | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers/{uid} \ | |
PATCH | /api/v1/subscribers/{uid} | Update subscriber for a mail list |
Parameters
Returns Update messages in json | Example: curl -X PATCH -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers/{uid} \ | |
POST | /api/v1/subscribers/{uid}/add-tag | Add tag(s) to subscriber |
Parameters
Returns Creation messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers/{uid}/add-tag \ | |
GET | /api/v1/subscribers/email/{email} | Find subscribers with email |
Parameters
Returns All subscribers with the email | Example: curl -X GET -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers/email/{email} \ | |
PATCH | /api/v1/lists/{list_uid}/subscribers/{uid}/subscribe | Subscribe a subscriber |
Parameters
Returns Result messages in json | Example: curl -X PATCH -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{list_uid}/subscribers/{uid}/subscribe \ | |
PATCH | /api/v1/lists/{list_uid}/subscribers/{uid}/unsubscribe | Unsubscribe a subscriber |
Parameters
Returns Result messages in json | Example: curl -X PATCH -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{list_uid}/subscribers/{uid}/unsubscribe \ | |
PATCH | /api/v1/lists/{list_uid}/subscribers/email/{email}/unsubscribe | Unsubscribe a subscriber by email |
Parameters
Returns Result messages in json | Example: curl -X PATCH -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/lists/{list_uid}/subscribers/email/{email}/unsubscribe \ | |
DELETE | /api/v1/subscribers/{uid} | Delete a subscriber |
Parameters
Returns Result messages in json | Example: curl -X DELETE -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/subscribers/{uid} \ |
NOTIFICATION
HTTP method | Endpoint | Function |
---|---|---|
POST | Send a delivery or abuse report to the application. It could be a success / bounce / feedback or abuse report | |
Parameters
Returns Action messages in json | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/notification \ curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/notification \ curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/notification \ curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/notification \ curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/notification \ |
FILE
HTTP method | Endpoint | Function |
---|---|---|
POST | /api/v1/file/upload | Upload file(s) to customer’s storage |
Parameters
Returns Upload result message | Example: curl -X POST -H “accept:application/json” -G \ https://email.infopromo.digital/api/v1/file/upload \ |
For better viewing experience, use a large screen!