Retrieve a usage receipt
Changed onReturns 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
- Base URLhttps://api.llmgateway.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Response
Final receipt, or a pending one while usage is unknown
Changes
- info
endpoint added
- info