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 Content on 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

CodeMeaning
200Success
202Accepted, processing continues in the background
204Success, no body
4xxSomething is wrong with the request. See Errors
5xxSomething went wrong on our side. Safe to retry with an idempotency key

Endpoints