API keys
Send your key as a Bearer token on every request:x-api-key header is also accepted:
orv_. Create and revoke them with the API keys endpoints or in the dashboard. A key’s role decides what it can do. See API keys.
Sessions
Dashboard users sign in and receive an access token and a refresh token. Send the access token as a Bearer token too.Register
Creates a user and a workspace.Log in
Response:
expiresIn seconds (900 by default).
Refresh
Exchange a refresh token for a new access token:Log out
Current user
Other sign-in methods
POST /v1/auth/magic-linkwith{ "email": "…" }sends a sign-in link.POST /v1/auth/magic-link/verifycompletes it.POST /v1/auth/forgot-passwordwith{ "email": "…" }sends a reset link.POST /v1/auth/reset-passwordsets the new password.- Single sign-on:
POST /v1/auth/sso/startbegins a sign-in, andPOST /v1/auth/sso/exchangecompletes it. See Single sign-on.
Errors
A missing or invalid credential returns401. A valid credential without the right role returns 403. See Errors.