Docs / Governance
Runtime identity
Credentials, rotation, delegation and suspension.
Management calls use Authorization: Bearer <access token> from POST /v1/auth/login. See Management API.
A runtime identity is bound to one agent version and an environment. Your application authenticates with one of its credentials.
Create an identity and a credential
curl -X POST $RAI_BASE_URL/v1/runtime-identities -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"agent_id":"'$AGENT_ID'","agent_version_id":"'$VERSION_ID'","name":"orders-dev","environment":"DEVELOPMENT"}'
curl -X POST $RAI_BASE_URL/v1/runtime-identities/$IDENTITY_ID/credentials \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{}'The response contains plaintext_secret once. Store it in a secret manager. The credential endpoint needs a JSON body, even an empty one. You can pass expires_at.
Lifecycle
| Action | Endpoint |
|---|---|
| Rotate a credential | POST .../credentials/{credential_id}/rotate |
| Revoke a credential | POST .../credentials/{credential_id}/revoke |
| Suspend or reactivate | POST /v1/runtime-identities/{id}/suspend · /reactivate |
| Revoke the identity | POST /v1/runtime-identities/{id}/revoke |
Delegated authority
A delegation lets a runtime identity act on behalf of a principal within a narrower scope: models, data sources, MCP servers, tools and environments. A child delegation cannot exceed its parent.
curl -X POST $RAI_BASE_URL/v1/delegations -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"delegator_type":"user","delegator_id":"user-123","delegate_runtime_identity_id":"'$IDENTITY_ID'","scope":{}}'Pass delegation_id when you start an SDK session. Inspect what a grant really permits at GET /v1/delegations/{id}/effective-authority.