PURESEND REST API
Overview
- This is the Puresend REST API that enables clients to
send emails,manage listsandmessagesvia a web service interface. - This page provides some basic examples using
curlcommand.
Command format
<Instance>is the Purecast server your account is running on.<API Function>is the API function endpoint which can be found in each API function detail page.<API Key>can be found in the bottom of the UI page inAdministration > Change password<JSON Input>is the parameter for the API, a sample template is at the bottom of each API function detail page.
curl --request POST 'https://<Instance>/PuresendService/v1/<API Function>' \
--header 'Authorization: Basic <API Key>' \
--header 'Content-Type: application/json' \
--data-raw '<JSON Input>'
- The following example shows a request of
Get List IdAPI, takinglistTypeas an input parameter with value1.
curl --request POST 'https://<Your Instance>/PuresendService/v1/getLists' \
--header 'Authorization: Basic <Your API Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"listType": 1
}'