Xurel Docs

cURL

Every endpoint works with plain HTTP. Export your key first:

env
export XUREL_API_KEY=xrl_dev_xxxxxxxx

Authentication

header
-H "Authorization: Bearer $XUREL_API_KEY"

Send email

POST /emails
curl https://api.xurel.co/v1/emails \
  -H "Authorization: Bearer $XUREL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@yourdomain.com",
    "to": ["user@example.com"],
    "subject": "Hello",
    "html": "<p>Sent with cURL</p>",
    "type": "transactional"
  }'

List resources

GET /domains
curl "https://api.xurel.co/v1/domains?limit=20" \
  -H "Authorization: Bearer $XUREL_API_KEY"