External Principals
Entity-anchored, role-scoped tool access for external users driving agent sessions.
How It Works
Management Endpoints
Roles
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
^[a-z][a-z0-9_]{0,63}$Successful Response
Wire shape for read + create responses.
An external role with the given name already exists
Validation Error
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
[]50Successful Response
Validation Error
Role Assignments
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
falseSuccessful Response
Validation Error
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
[]50Successful Response
Validation Error
Role Grants
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
An active grant for this (role, resource, access) already exists
Validation Error
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
[]50Successful Response
Validation Error
Session Resolution
Grant Gating
Identity Injection
Param Bindings
Integration with Approval Gates
Sessions Without a Principal
Identity Bindings on Custom Token Exchange
Example: Per-Clinician Access
Last updated
Was this helpful?

