Rensei docs
API ReferenceWorker Protocol

Resolve credential env map for a session

Called by the host daemon at session spawn to obtain the merged environment variable map for the agent. The `orgId` in the body must match the authenticated org (cross-tenant guard). Audit event emitted asynchronously (does not include secret values).

POST
/api/daemon/credentials/snapshot

Authorization

rsk_Bearer
AuthorizationBearer <token>

Rensei API key. Format: rsk_live_<random>. Generated in Settings or via POST /api/org/{orgId}/keys. Used by CLI (af), daemon, and programmatic integrations.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/daemon/credentials/snapshot" \  -H "Content-Type: application/json" \  -d '{    "orgId": "string",    "sessionId": "string"  }'
{
  "env": {
    "property1": "string",
    "property2": "string"
  },
  "refreshUntil": "2019-08-24T14:15:22Z"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}