Rensei docs

Get the assembled audit receipt for an inbound dispatch.

Get the assembled audit receipt for an inbound dispatch. - Rensei REST API operation reference.

GET
/api/cli/dispatch/{instanceId}/receipt

Authorization

AuthorizationBearer <token>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

In: header

Path Parameters

instanceId*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/cli/dispatch/string/receipt"
{
  "receipt": {
    "version": "v1",
    "sessionId": "string",
    "workflowInstanceId": "string",
    "workspaceId": "string",
    "decision": {
      "decisionId": "string",
      "modelId": "string",
      "modelVersion": "string",
      "policyRuling": {
        "property1": null,
        "property2": null
      },
      "entryHash": "string",
      "signingKeyId": "string",
      "signature": "string",
      "occurredAt": "2019-08-24T14:15:22Z",
      "promptHash": "string",
      "promptSnapshotId": "string",
      "contextHash": "string",
      "contextSnapshotId": "string"
    },
    "inferences": [
      {
        "provider": "string",
        "model": "string",
        "costUsd": 0,
        "latencyMs": 0,
        "totalTokens": 0,
        "count": 0
      }
    ],
    "totalCostUsd": 0,
    "durationMs": 0,
    "sessionStatus": "string",
    "evals": [
      {
        "graderId": "string",
        "status": "scored",
        "score": 0,
        "pass": true,
        "reasoning": "string"
      }
    ],
    "evalStatus": "none",
    "kgHits": {
      "observationIds": [
        "string"
      ],
      "graphNodeIds": [
        "string"
      ],
      "count": 0
    },
    "kgStatus": "none",
    "triggerMeta": {
      "triggerType": "string",
      "triggerEventId": "string",
      "definitionVersion": "string",
      "isTestRun": true,
      "instanceStartedAt": "2019-08-24T14:15:22Z",
      "instanceCompletedAt": "2019-08-24T14:15:22Z"
    },
    "retentionMeta": {
      "hotRetentionDays": 0,
      "coldRetentionYears": 0,
      "archiveCoveredThrough": "2019-08-24T14:15:22Z",
      "archiveSha256": "string",
      "archiveProvider": "string"
    },
    "actorProvenance": {
      "agentId": "string",
      "agentIdentityId": "string",
      "sourceIdentity": "string",
      "trackerProvider": "string",
      "trackerSessionId": "string"
    },
    "auditChainRef": {
      "sequenceNumber": 0,
      "prevHash": "string",
      "merkleAnchorUrl": "http://example.com"
    },
    "receiptIntegrity": {
      "receiptHash": "string",
      "assembledAt": "2019-08-24T14:15:22Z",
      "receiptVersion": "v1"
    },
    "links": {
      "jwksVerifyUrl": "http://example.com",
      "permalink": "http://example.com"
    }
  }
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}