Endpoints
All endpoints require a workspace-scoped API key (
Authorization: Bearer). SMS delivery uses the configured Trigger.dev workflow and sender ID; ensure SMS_SENDER_ID is set in environments that require branded messaging.Key concepts
- Email verification endpoints return
ok: truetoday. Wire them to your email provider to send codes via Trigger.dev or another service before promoting to production. - SMS verification stores hashed codes in
comms.verification_codes, expires them after 5 minutes, and marks records as consumed after confirmation. - VAT verification currently performs format normalization (EU heuristic). When
ENABLE_VIES_CHECKis set, extend the handler to call VIES and populateisRegistered. - Tax preview reuses the price engine rule picker, making it ideal for admin tooling that explains how VAT will be applied.
- Document rules combine market configuration with product countries to determine which documents must be collected from travellers.