Receipts: Mint receipt
metrecept_mint_receiptMint a fresh signed Ed25519 receipt (compact JWS) of a chosen kind via a real gateway call, returning kid, iat, and verify_url to show or test receipt verification end to end.
Instructions
Mint one fresh signed Ed25519 receipt (compact JWS) of a chosen kind by making the smallest real gateway call that produces it, and return the receipt with its kid, iat and a verify_url. Use it to show or test receipt verification end to end, or to attach a real receipt to a demo or bug report. Not for a run you already made: use metrecept_get_session_receipt. Not for a public savings page: use metrecept_publish_savings_receipt. Each kind makes real calls billed as normal (cache_miss, finops, cache_bypass, web_fetch and api_call are metered; cache_hit bills one miss then a hit). Anyone can check verify_url in a browser against the public key directory. Errors come back as JSON {"error", ...}: no_api_service when kind api_call has no registered service, no_receipt when none of that kind came back. Requires a Metrecept API key (METRECEPT_API_KEY env on stdio, or Authorization: Bearer on remote HTTP); results are scoped to that key's tenant only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Receipt kind to mint. cache_miss/finops: one fresh "mock" chat call. cache_hit: the same prompt twice, receipt from the replay. cache_bypass: fresh call with cache_control no_store. web_fetch: chat call grounded in https://example.com/. session: one tagged chat call, then the session aggregate. custody: one "access" custody record for a placeholder subject. statement: this month's ledger statement. carve: one carve hop over the label, disperse off. savings: savings attestation. api_call: GET through your first registered API service (needs one). | |
| label | No | Free text mixed into the minted request so each run is unique and recognisable, e.g. a PR or ticket id (default "metrecept-mint"). | metrecept-mint |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |