Introduction
Fundamental concepts of Sent.dm’s API.
Sent.dm’s API is currently in beta. If you have any questions or feedback, please reach out to us at team@sent.dm.
Base URL
Sent.dm’s API is built on REST principles and is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.
The Base URL for all API endpoints is:
https://sent.dm/api/
Authentication
Authentication to Sent.dm’s API is performed via the Authorization header with a Bearer token. To authenticate, you need to include the Authorization header with the word Bearer
followed by your token in your API requests like so:
Authorization: Bearer <Your-Token>
You can create a new token/API key under your Sent.dm Account Settings.
Workspace ID
Sent.dm’s API is organized around Sites. Each site has its own set of resources and permissions. To access a sites’s resources, you need to include the siteId
query parameter in your API requests like so:
https://sent.dm/api/v1/subscribers?siteId=<Your-Site-ID>
You can get your Site ID under your Sent.Dm Site Settings.
Response Codes
The API returns standard HTTP response codes to indicate the success or failure of an API request. Here are a few examples:
Code | Description | |
---|---|---|
200 | The request was successful. | |
400 | The request was invalid or cannot be served. | |
401 | The request requires user authentication. | |
403 | The server understood the request, but refuses to authorize it. | |
404 | The requested resource could not be found. | |
500 | The server encountered an unexpected condition which prevented it from fulfilling the request. |
Caveats
- Sent’s API is currently in public beta and is subject to change. However, we will do our best to keep breaking changes to a minimum.
Was this page helpful?