Skip to content

API reference

API keys API

Create, list and revoke keys for the API and SMTP.

Paths are relative to https://isent.dev/api/v1. Every request needs an API key; see API overview for errors, rate limits and pagination.

List API keys

GET/api-keys

Tokens are never returned again; token_prefix identifies a key.

Responses

List API keys: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/api-keys \
  -H "Authorization: Bearer $ISENT_API_KEY"

Create an API key

POST/api-keys

The token is in this response only. Store it now.

Body

A JSON object.

Create an API key: body
NameTypeDescription
nameRequiredstring1 to 100 characters.
permission"full_access" | "sending_access"None
domain_idstringLimit a sending_access key to one domain.
mode"live" | "test"None

Responses

Create an API key: responses
StatusMeaning
201Created.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Revoke an API key

DELETE/api-keys/{id}

Requests with it fail from now on.

Parameters

Revoke an API key: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Revoke an API key: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X DELETE https://isent.dev/api/v1/api-keys/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"