Password reset chain
The reset flow is two POSTs:forgot-password mints the single-use link, reset-password burns it. forgot-password answers 200 { "success": true } whether or not the address exists (enumeration guard), so treat success as “the request was accepted”, not “an email was sent”. Both endpoints are public and rate limited: 3/min per IP on forgot, 5/min per IP on reset, plus a 10/hour per-email throttle on forgot that silently skips the email once exceeded.
POST /api/v1/auth/forgot-passwordlocale is optional and, when set, prefixes the emailed link so the reset page opens in the requester’s language. A client error means the address failed basic format validation:
404 Error
429 Error
POST /api/v1/auth/reset-passwordtoken query parameter of the emailed link; pass it verbatim in the body with the new password. The password is checked against the complexity policy BEFORE the token is consumed, so a rejected password (422) does not invalidate the link and the user can retry with a stronger one. An expired or already-used token answers 410.
200
422 Error
GET /api/v1/auth/post-reset-revoke-api-keys?token=…, a 24-hour single-use link that answers an HTML confirmation page, not JSON).
Step 1 — request the link. No API key; the endpoint is public.
token query parameter of the emailed link verbatim, with the new password.
Consent handshake
POST /api/v1/auth/consent records the signed-in user’s acceptance of the Terms of Service and Privacy Policy. It requires an active session (no API key) and is meant to be called once from the signup or invite-acceptance flow; posting again updates the record in place, so re-acceptance after a policy update is safe. The two *Version fields are the only required ones — they are the version strings your consent banner displayed, which makes the stored row reproducible evidence of what the user accepted.
POST /api/v1/auth/consentacceptedAt echoes the stored acceptance timestamp. A 422 lists the offending fields in error.issues, most commonly a missing termsVersion or privacyVersion.
200
422 Error
Impersonation handoff
Support impersonation is a three-step handoff that keeps the operator JWT out of URLs, proxy logs and referrer headers. (1) The operator console mints a short-lived token and your client posts it toPOST /api/v1/auth/impersonate-cookie-set, which verifies it and stages it in a five-minute, httpOnly, Secure, SameSite=Strict cookie:
204 No Content. (2) The operator’s browser then opens GET /api/v1/auth/impersonate-cookie-consume, which reads the cookie, enforces one-time use (a second visit to the same link is rejected), clears the cookie and answers a 302 redirect into the impersonated dashboard — there is no JSON success body on that hop. The sample shown for it below restates the redirect the browser observes. (3) Programmatic clients that hold the token directly can instead call POST /api/v1/auth/impersonate-exchange, which returns the grant the token carries.
POST /api/v1/auth/impersonate-cookie-setGET /api/v1/auth/impersonate-cookie-consume200
POST /api/v1/auth/impersonate-exchange200
401 Error
The SAML SSO round-trip
These four operations are the service-provider side of SAML 2.0 SSO — the route an organization’s IdP administrators walk to wire Okta, Entra ID, or similar into Orbit’s sign-in. The page’s{orgSlug} path segment selects the SAML configuration; it is a URL-safe organization slug, not an API-key credential, and the operations are deliberately unauthenticated because they begin a session rather than require one.
Sequence the round-trip like this. (1) GET /auth/saml/{orgSlug}/metadata returns the service-provider XML the IdP admin imports to register Orbit: entity ID, ACS URL, and signing details. (2) GET /auth/saml/{orgSlug}/login?redirect=/settings/team issues the SP-initiated AuthnRequest and 302-redirects the browser to the IdP’s SSO URL; any redirect value is signed into RelayState and sweeps the post-auth destination back. (3) The IdP POSTs the signed SAMLResponse to /auth/saml/{orgSlug}/callback — the Assertion Consumer Service verifies signature, audience, and the replay window, provisions the user on first login, then 302-redirects to the dashboard sign-in ticket that mints the session cookie. (4) GET /auth/saml/{orgSlug}/logout?nameId=<subject> builds a LogoutRequest for the IdP’s SLO endpoint when single logout is configured; otherwise it answers 200 with a logged_out status, and the local ceremony destroys the session.
A worked check-in sequence in cURL:
cURL
The four calls above do not return the normal JSON envelope — skip the
read-ahead envelope check for them. Success on this page is a 302
redirect (
login, logout, and the IdP-driven callback) or a
Content-Type: application/xml metadata download (metadata), not a
{ "data": … } body. Only failures come back in the standard
{ "error": …, "meta": { "request_id" } } envelope (see the
error shapes table) — or, when single logout is not
configured on the org, logout answers 200 with
{ "data": { "status": "logged_out" } }, the one non-error JSON body on
this page.Same round-trip from an SDK escape hatch
The SAML ceremonies are browser-first, so no SDK ships a typed helper for them — the Node, Python, and Go SDKs all reach the same four routes through their generic request escape hatch (orbit.request, client.request,
client.Request). You keep the SDK’s auth, retries, and base URL against
these raw paths. The practical server-side uses are the two machine-readable
steps — fetch the SP metadata XML to ship to the IdP admin, and probe
the login redirect in a smoke check (the client must not auto-follow the
302 because it targets the IdP, not Orbit). The callback remains the IdP’s
own POST; there is nothing to call from your side.
Error shapes
Failures land in the standard{ "error": …, "meta": { "request_id", "timestamp" } } envelope — meta.request_id is the one handle support
needs. The request ids pinned below (req_auth_saml_login,
req_auth_saml_logout, req_auth_saml_callback, req_auth_saml_metadata)
are worked examples of that handle, one per operation. The envelope’s
error.code is the machine-readable discriminator; the callback
rejections also carry a details.reason for the exact check that failed.
Plan for these on the round-trip:
ERR_BAD_RELAY_STATE, AUTH_METADATA_MISMATCH, and CHALLENGE_TERMINAL
are the three rejection classes the onboarding round-trip hits most —
RelayState forgery/staleness on the ACS POST, IdP-side metadata drift, and
a second submit of a single-use ceremony. All three recover the same way:
never retry the same payload, restart GET …/login.