RaiCentral

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

bash
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

ActionEndpoint
Rotate a credentialPOST .../credentials/{credential_id}/rotate
Revoke a credentialPOST .../credentials/{credential_id}/revoke
Suspend or reactivatePOST /v1/runtime-identities/{id}/suspend · /reactivate
Revoke the identityPOST /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.

bash
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.

A runtime identity with its credentials, delegations and SDK integrations · Community Edition console · sample data

/governance/runtime-identities/{identity}

Runtime identity page with status, bound agent version, credentials, delegations and SDK integrations