Quickstart
From a signed-in Orvyx account to two working API calls in four steps.
Base URL
https://api.orvyx.io. Every route except /api/health requires a token — there is no anonymous access.1. Create an access token
Orvyx uses one identity provider for every surface, so the account you use in the app is the account the API knows. Sign in at app.orvyx.io and take your session’s access token — the same token the app itself sends — and use it for API calls. When you sign out of the app, that token stops working.
A personal access token flow — long-lived tokens you can name and revoke from settings — is planned. Until it ships, use your session token for experiments and integration testing.
2. Make your first request
Call /v1/me with your token in the Authorization header. It returns the caller’s identity and the workspaces the token can see.
curl https://api.orvyx.io/v1/me \
-H "Authorization: Bearer <token>"A valid token returns 200 with the envelope described in step 4. A missing, malformed or expired token returns 401 with the code UNAUTHENTICATED.
3. List your workspaces
Workspaces are the unit of ownership in Orvyx: projects, generations and calendars all live inside one, and every permission check is made against one. List the ones your token can reach:
curl https://api.orvyx.io/v1/workspaces \
-H "Authorization: Bearer <token>"The list reflects row-level security, not the API’s judgment. If your role cannot read a workspace, it does not appear here — and no endpoint will return it.
4. Handle the response
Every response body uses the same envelope. Success carries the payload under data and null under error; failure carries the reverse. Errors always include a stable code you can branch on, and a message meant for humans. The full catalogue is on the error codes page.
{
"data": null,
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid bearer token."
}
}Rate-limited responses (429, code RATE_LIMITED) include a Retry-After header. Honor it rather than backing off on a guessed interval.