Information
- OpenAPI version:
3.1.0
HTTP API of the Vexarn platform. An interactive reference of this document is served at /reference. The main documentation and API reference is at https://docs.vexarn.dev/api-reference/. Sign-in, sign-out and session endpoints under /api/auth/* are served by Better Auth (https://www.better-auth.com/docs/concepts/api) and are not listed here. Errors have the shape { "error": { "code", "message" } }; errors about a plan limit add limit, the limit that was hit. The routes listed here are rate limited per client address and, with a session, per signed-in user; /openapi.json and /reference per client address. Over a limit they answer 429 rate_limited with Retry-After (and the RateLimit and RateLimit-Policy headers on every response). Bodies over 16 KiB are refused with 413 payload_too_large. POST, PUT, PATCH and DELETE requests whose Origin is not the web app (or is missing) are refused with 403 forbidden_origin (CSRF defence). A browser can be signed in to several accounts and switch between them: a request may carry X-Vexarn-User with the id of the account it is meant for, and when the session belongs to another account it is refused with 409 account_changed and nothing is done. Until the signed-in user accepts the current Terms of Service and Privacy Policy (POST /api/legal/acceptances), the product routes answer 403 terms_not_accepted; the account, sessions, listing agents and their connections, revoking a connection, deleting an agent and the acceptance itself stay available.
Session cookie set by Better Auth after signing in (POST /api/auth/sign-in/social); better-auth.session_token on plain-http development stacks. With several accounts signed in, the active one. Send X-Vexarn-User with the expected account id to have a request refused (409 account_changed) when the active account changed.
Security scheme type: apiKey
Cookie parameter name: __Host-vexarn.session_token