Skip to content

Getting started

API keys

Full-access and sending-only keys, domain scopes, rotation and storage.

API keys authenticate calls to the API and, as the password, to the SMTP relay. Create and revoke them in API keys or with the API keys API. Owners, Admins and Developers of a team can manage keys.

Format

  • A key looks like is_live_ followed by 24 random characters. Keys created as test keys start with is_test_.
  • The token is shown once, when the key is created. isent stores only its SHA-256 hash and the first 12 characters, which the dashboard shows so you can tell keys apart.
  • Test keys work exactly like live keys today, and send real email. The prefix only labels them.

Permissions

Key permissions
PermissionAPI valueCan call
Full accessfull_accessEvery endpoint.
Sending accesssending_accessPOST /emails and POST /emails/batch only. Optionally limited to one domain with domain_id.

A sending-access key that calls another endpoint gets 401 restricted_api_key. A key limited to one domain that sends from another gets 403 restricted_api_key.

Create a key with the API

curl -X POST https://isent.dev/api/v1/api-keys \
  -H "Authorization: Bearer $ISENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Billing worker",
    "permission": "sending_access",
    "domain_id": "dom_123"
  }'
JSON
{
  "object": "api_key",
  "id": "key_123",
  "name": "Billing worker",
  "token_prefix": "is_live_2b7d",
  "permission": "sending_access",
  "domain_id": "dom_123",
  "last_used_at": null,
  "created_at": "2026-11-27T14:02:00.000Z",
  "token": "is_live_…"
}

Use a key

Send the key as a bearer token on every request. Requests without one get 401 missing_api_key; unknown or revoked keys get 401 invalid_api_key. Each key can make 10 requests a second.

HTTP
Authorization: Bearer $ISENT_API_KEY

Keep keys safe

  • Keep keys on your servers, in environment variables or a secrets manager. Never ship one in a browser or mobile app.
  • Give each service its own key, with the least access it needs: a sending key for the app that sends, a full-access key for the jobs that manage domains or contacts.
  • To rotate a key, create the new one, deploy it, then revoke the old one. Revoking takes effect at once.
  • The dashboard shows when each key was last used, and marks keys unused for 90 days so you can revoke them.