Retrieve a usage receipt

Changed on

Returns the receipt of a request sent with x-llmgateway-usage-contract: 1, by its receipt ID or the caller's operation ID. Receipts are kept for 30 days; an unknown receipt is not proof of zero usage.

get/v1/usage/receipts/{id}

Request

Path parameters

idstring required

Response

Final receipt, or a pending one while usage is unknown

v1 required
receiptIdstring required
operationIdstring nullable required
operationstring required
modelstring nullable required
state'pending' | 'final' required
costUsdstring nullable required

Exact list-price cost in USD as a decimal string; null while pending.

usageobject required
pricingVersion'llmgateway-list-v1' required
createdAtstring required
expiresAtstring required
resourceIdstring
notDispatchedtrue

Changes