Elegovate Docs
API v1

Error codes

HTTP responses and validation errors for the public API.

Error codes

The integrator API uses standard HTTP status codes. Validation errors return JSON with per-field detail.

Summary

CodeMeaningRecommended action
202AcceptedMessage queued; check status in the panel.
400Bad requestReview JSON body and headers.
401UnauthenticatedVerify Authorization: Api-Key ….
403ForbiddenCheck X-Organization-ID and project permissions.
404Not foundTemplate or resource missing in tenant.
422Unprocessable entityValid format but rejected by business rules.
429Rate limit exceededWait and retry with exponential backoff.
5xxServer errorRetry; contact support if it persists.

401 — Authentication

Common causes:

  • Missing Authorization header or missing Api-Key prefix.
  • Revoked or incorrect API key.
{
	"detail": "Authentication credentials were not provided."
}

403 — Permissions

The API key is valid but cannot operate on the given organization, or the plan blocks more sends.

404 — Template not found

The template slug does not exist on the project linked to the API key.

422 — Send validation

Example when the template is missing or the channel is invalid:

{
	"template": ["Template not found or inactive."],
	"to": ["This field is required."]
}

Common fields on POST /api/v1/send/:

FieldRule
templateActive template slug in the project.
toValid destination email.
channelCurrently email.
dataJSON object with template variables.

429 — Rate limiting

Public send is limited per API key (default 120 requests/minute, configurable via NOTIFY_PUBLIC_SEND_RATE).

{
	"detail": "Request was throttled. Expected available in 42 seconds."
}

Retry-After headers may be included. Use Idempotency-Key for safe retries.

202 — Success response

{
	"message_id": 1042,
	"status": "queued",
	"celery_task_id": "a1b2c3d4-...",
	"idempotent_replay": false
}

Support

If a 5xx persists, note message_id, UTC time, and the Idempotency-Key used when contacting support.

On this page