What I may do
const url = 'https://example.com/v1/identity/me/permissions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/identity/me/permissions \ --header 'Authorization: Bearer <token>'What the caller may do, so a client can hide what it can’t: tenant admin, its reviewer role and the roles it decides, its API key’s limits and capabilities, the projects it may read with its role in each and every way it holds it (directly, a team, an org it administers, tenant admin), its orgs and teams, and what each project role allows (from the runtime’s authorization model). The key’s limits are applied: a member key is never tenant admin, and a key limited to a project sees that project alone. Whether the deployment’s license is held back from the caller whatever its role (licenseOperatorOnly), so a console doesn’t ask GET /v1/license. Only what the caller may see. The server still checks every call. 501 permissions-unsupported on a runtime without an authorization store: read whoami’s tenantAdmin and reviewerRole instead.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”What the caller may do.
What the caller may do, with its API key’s limits applied: tenant admin and member, its reviewer role, its key’s limits and capabilities, the projects it may read or run with its role in each and how it holds it, its orgs and teams, what each project role allows, and what everyone in the workspace may do on a project that lets everyone run it. Only what the caller may see: nothing names a project it can neither read nor run, or anyone else’s role.
object
Example
{ "reviewer": { "role": "standard", "decides": [ "standard" ] }, "key": { "role": "admin" }, "projects": [ { "role": "owner", "via": [ { "kind": "direct", "role": "owner" } ] } ], "orgs": [ { "role": "admin" } ], "teams": [ { "role": "member" } ], "capabilities": { "owner": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] }, "admin": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] }, "editor": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] }, "runner": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] }, "viewer": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] } }, "everyoneCapabilities": { "project": [ "read" ], "agent": [ "read" ], "flow": [ "read" ], "tool": [ "read" ], "guardrail": [ "read" ], "test_set": [ "read" ], "trigger": [ "read" ], "conversation": [ "read" ], "secret": [ "read" ], "env": [ "read" ], "mcp_endpoint": [ "read" ], "run": [ "read" ] }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The runtime has no authorization store (permissions-unsupported): read whoami instead.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The authorization store couldn’t be read (authz-backend-unavailable), or the database was too busy to answer in time (database-busy); either way Retry-After says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
GET /v1/identity/me/second-factor: My second factorPOST /v1/identity/me/second-factor: Start setting up a second factorPOST /v1/identity/me/second-factor/confirm: Confirm a new second factorPOST /v1/identity/me/second-factor/recovery-codes: New recovery codes- Run with authorization
- People, API keys and service accounts
- Operate a self-hosted runtime
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
permissions-unsupported - Error code
rate-limit-exceeded - Every error code