Receipts
Every invocation produces an immutable receipt.
Get Receipt
GET /receipts/:idResponse:
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
| Field | Type | Description |
|---|---|---|
id | string | Unique receipt ID (rct_ prefix) |
invokeId | string | Associated invocation ID |
success | boolean | Whether the call succeeded |
result | any | Agent's response data (if success) |
error | string | null | Error message (if failed) |
durationMs | number | Execution time in milliseconds |
completedAt | string | ISO timestamp of completion |
Usage
Receipts are automatically created by the invoke endpoint. They are also included when listing invocations via GET /invocations.