Skip to contentSkip to navigation

Endpoints

Request and response details for the Own Auth Delivery HTTP API.

POST /v1/email

Validates and queues one auth email for the app that owns the delivery key.

To manage apps, settings, keys, and usage, use the Delivery Management API.

http
POST https://api.own-auth.com/v1/email
Authorization: Bearer oad_...
Content-Type: application/json

{
  "to": "user@example.com",
  "type": "magic_link",
  "url": "https://app.example.com/auth/callback?token=abc123",
  "expiresAt": "2026-07-10T12:00:00.000Z"
}

Email Request Fields

FieldRequiredMeaning
toyesRecipient email address.
typeyesThe auth email template to send.
urlyesHTTPS, local development, or configured app-scheme auth URL containing only a non-empty token query parameter.
expiresAtyesISO timestamp for when the auth link expires.
organisationNameinvites onlyOrganisation shown in an invitation email.
inviterNamenoInviter shown in an invitation email.

Email Types

TypeEmail
magic_linkPasswordless sign in
email_verificationEmail verification
password_resetPassword reset
organisation_inviteOrganisation invitation

Email Success Response

http
HTTP/1.1 202 Accepted
Content-Type: application/json

{
  "ok": true
}

Email Error Responses

StatusMeaning
400Invalid body, auth URL, or hosted-link configuration.
401Missing, invalid, or revoked delivery key.
429Per-key, per-recipient, or daily app limit reached.
503The delivery queue cannot accept the email.