auth

A guest gives one email at Book and goes straight into checkout.

Needs the guest's anonymous session. Creates the Users row for this same Supabase id with the email UNVERIFIED and no phone, so checkout works at once; tickets and receipts go to this email. Users binds the address as the account's email login. Nothing is mailed by this save, so it does not consume the allowance for sending verification codes.

A repeat call answers the same; an email guest may correct the address before verifying it. 409 email_exists when the email belongs to another account, with login_with: "phone" (log in with the phone code; most accounts), "email" (log in with an email code) or null (that account has not verified anything; ask for another email); then resume the flight. 403 guest_disabled when ParamStore guest_checkout.enabled is off.

post/auth/guest-email

Request

  • Base URL: https://api.helloaxel.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.helloaxel.com/auth/guest-email
  • Auth: HTTP bearer

Request body

emailstring email required
timezonestring nullable

Response

Successful Response

status'created'
emailstring email required

The email tickets and receipts go to.

account_createdboolean

True only on the call that created the account: that call is the sign-up, sent to Meta, Google and X under the request's tracking.meta.event_id, which the web reuses for its sign_up push. False on a repeat call.

Changes