A first call
data — see Pagination for the iteration protocol.
Endpoints
List all workspaces accessible to this token. Resolve the default workspace for this token or session. Fetch a single workspace by slug. Switch the active workspace context (OAuth sessions only).Default workspace resolution
| Principal | What GET /v1/workspaces/current returns |
|---|---|
| Workspace API key | The workspace the key was minted against. Always the same. |
| OAuth session token | The workspace active when the session was established, or the workspace last switched to via /switch. |
Switching context
Switch applies only to OAuth session tokens. API keys are workspace-scoped at mint time and cannot be redirected — mint a new key against the target workspace instead. The endpoint returns the workspace that is now active for the session: Common errors:Related
API tokens
Create, rotate, and revoke workspace API keys.