Skip to content

API reference

Confirmations

Two endpoints supporting the email-link confirmation flow. End users click a link in their notification email; the link calls these endpoints to confirm or check service health.

Key points

  • These endpoints are called from confirmation links emailed to participants
  • Tokens are short-lived and single-use — expired or already-used tokens fail
  • No JWT required; the confirmation token itself authorizes the request
  • Two-way confirmation (Y/N reply via SMS) uses a different code path; this is for email links

About confirmations

When the engine sends an appointment notification with a confirmation link, that link points at this resource. The endpoint validates a one-time token, marks the event as confirmed, and returns a result the recipient’s browser can render.

These endpoints don’t require JWT authentication — end users following an email link wouldn’t have one. The token in the URL is the authorization signal. Tokens are short-lived (typically 30 days) and single-use.

Process confirmation

GET/api/v1/confirmations

Process an email confirmation link. Validates the token, confirms the linked event, and returns a success or error result.

Query parameters

  • tokenstringrequired

    Single-use confirmation token from the email link. Embedded in the link as ?token=...

Responses

200Confirmation processed successfully
400Invalid or expired confirmation token (already used, expired past TTL, or malformed)
404Event not found or has been deleted since notification was sent

What happens after confirmation

When a confirmation succeeds, the engine moves the event to confirmed status (the same as if you called POST /events/{eventId}/confirm directly), records the confirmation in the audit log with the token as the actor, and runs any post-confirm workflows configured in the template.

Service health

GET/api/v1/confirmations/health

Health check for the confirmation service. Mostly used by deployment infrastructure to verify the service is reachable.

Responses

200Service is healthy

This is a lightweight check — it doesn’t verify token storage or downstream services. For full service health, use the main /api/v1/health endpoint.