Getting started with the API
The MailPurse REST API exposes your account’s lists, contacts, campaigns, servers and billing over JSON over HTTPS. All endpoints are prefixed with /api.
The MailPurse REST API exposes your account’s lists, contacts, campaigns, servers and billing over JSON over HTTPS.
Base URL
All endpoints are prefixed with /api. The customer API lives under /api/v1:
https://your-domain.example/api/v1
First request
- Create an API token in your account.
- Send it as a Bearer token.
- Try listing your lists:
curl /api/v1/lists \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Permissions
Each endpoint checks a granular permission such as lists.permissions.can_access_lists. If a request returns 403, enable that permission on the token’s customer account.
Was this page helpful?