API keys authenticate every request to the Render API. Keys are created in the Maildeno dashboard and can be scoped to specific render targets.

Creating a key

  1. Go to Dashboard → API Keys → Create Key.

  2. Enter a descriptive name (e.g. production-html, staging-all).

  3. Select the Targets this key is allowed to render.

  4. Click Create.

  5. Copy the key — it is shown only once.

API key creation dialog showing name and targets fields
Store keys in a secrets manager or environment variables. Never commit them to source control or expose them in client-side code.

Target scopes

Targets value Allowed render calls

["all"]

html, react-email, mjml

["html"]

html only — react-email and mjml return 403 FORBIDDEN

["html", "mjml"]

html and mjmlreact-email returns 403 FORBIDDEN

Revoking a key

  1. Go to Dashboard → API Keys.

  2. Click Trash icon to → Revoke key.

  3. Confirm. Requests using the revoked key will immediately receive 401 INVALID_API_KEY.

Use a consistent naming scheme to make key management easier at scale:

{environment}-{service}-{target}

Examples:
  production-backend-html
  staging-newsletter-service-all
  ci-test-runner-html

Creating keys via the REST API

curl -X POST {api-base-url}/api/v1/keys \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ADMIN_KEY>" \
  -d '{"name": "HTML only", "targets": ["html"]}'

See SDK: API Key Scopes for the full reference.