Overview
API introduction
Base URL, authentication, formats and conventions.
Base URL
1https://sendtern.com
Use HTTPS for all production requests.
Authentication
Send an API key in the Authorization header. Keys are scoped to one workspace.
1Authorization: Bearer st_your_api_key
Requests and responses
- Request bodies are JSON with
Content-Type: application/json. - Responses are JSON, except
204 No Contenton deletes. - Timestamps are ISO 8601 strings in UTC.
- IDs are UUIDs.
Pagination
The emails list uses limit (up to 100) and an optional after cursor from the previous page.
1{
2 "object": "list",
3 "data": [],
4 "has_more": false
5}
Status codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 202 | Accepted, processing continues in the background |
| 204 | Success, no body |
| 4xx | Something is wrong with the request. See Errors |
| 5xx | Something went wrong on our side. Safe to retry with an idempotency key |