Skip to content

Receipts

Every invocation produces an immutable receipt.

Get Receipt

GET /receipts/:id

Response:

json
{
  "ok": true,
  "receipt": {
    "id": "rct_abc123",
    "invokeId": "inv_abc123",
    "success": true,
    "result": {
      "flights": [
        { "airline": "ANA", "price": 850, "departure": "10:30" }
      ]
    },
    "error": null,
    "durationMs": 145,
    "completedAt": "2026-01-15T10:30:00.000Z"
  }
}

Receipt Fields

FieldTypeDescription
idstringUnique receipt ID (rct_ prefix)
invokeIdstringAssociated invocation ID
successbooleanWhether the call succeeded
resultanyAgent's response data (if success)
errorstring | nullError message (if failed)
durationMsnumberExecution time in milliseconds
completedAtstringISO timestamp of completion

Usage

Receipts are automatically created by the invoke endpoint. They are also included when listing invocations via GET /invocations.