Skip to main content
v1 · Stable

Averium API

Send transactional and marketing emails programmatically with a clean REST API. Resend-compatible.

Introduction

The Averium API allows you to send emails programmatically from your apps. It uses simple HTTP requests with JSON bodies and returns JSON responses.

Base URL

https://api.averium.ai/v1

Or via Supabase Edge Functions:

https://<project>.supabase.co/functions/v1/send-email

Authentication

All API requests require a Bearer token:

Authorization: Bearer av_live_your_api_key_here

Generate API keys in your Averium dashboard under Account → API Keys.

Send an email

POST /v1/send

Request body

ParameterTypeRequiredDescription
fromstringSender address. Must be a verified domain.
tostring | arrayRecipient(s). Max 50.
subjectstringEmail subject line.
htmlstring*HTML body. Required if text not provided.
textstring*Plain text body. Required if html not provided.
reply_tostringReply-to address.
ccstring | arrayCC recipients.
bccstring | arrayBCC recipients.

Example request

curl -X POST https://api.averium.ai/v1/send \
  -H "Authorization: Bearer av_live_••••••••" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@yourbrand.com",
    "to": ["customer@example.com"],
    "subject": "Your order is on the way!",
    "html": "<p>Thanks for your order...</p>"
  }'

Rate Limits

LimitValue
Per API key100 requests/minute
Per organization500 requests/minute
Per IP (unauthenticated)10 requests/minute

When exceeded, the API returns HTTP 429:

{ "error": "Rate limit exceeded", "retry_after": 60 }

With headers: Retry-After: 60, X-RateLimit-Limit: 100, X-RateLimit-Resource: key

Error codes

CodeMeaning
400Bad request — missing or invalid parameters
401Invalid or missing API key
403API key lacks send permission
422From domain not verified
429Rate limit exceeded
500Internal server error