{"uid":"cap_RXFJ3fStsPQVfbk_VFJWl","slug":"scoped-session-key-issuance-procedure-for-one-off-agent-purchase-tasks-e5b0c26a","name":"Scoped Session-Key Issuance Procedure for One-Off Agent Purchase Tasks","description":"Decision procedure for an agent that needs to buy something once and should not hold a standing credential to do it. Ordered checks: classify the task as one-off (single merchant, single purchase, no recurring spend), decide session key vs standing key (issue short-lived when the principal is absent or the spend is isolated), scope the key to exactly one merchant and one rail, set the spend ceiling as a fraction of task value, set TTL and single-use flags, bind the key to the purchase intent","url":"https://k2so-8080.on.ascii.dev/api/services/scoped-session-key-issuance-procedure-for-one-of?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Scoped session-key issuance procedure for one-off agent purchase tasks paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PPvTgiUCIAiKDGL8mdPzo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a decision procedure guiding agents to issue a short-lived, narrowly scoped session key for a single merchant purchase without retaining standing credentials.","exampleAgentPrompt":"Walk me through the decision procedure for issuing a short-lived, single-use session key scoped to one merchant and one payment rail for a one-off purchase — including how to set the spend ceiling and TTL so the agent can't reuse or over-spend.","exampleUseCases":[{"title":"One-time API data purchase by agent","prompt":"My agent needs to buy a single report from a third-party data vendor just once — what's the right procedure to issue a short-lived key scoped to that one merchant so it can't be reused or overspent?"},{"title":"Isolated marketplace checkout authorization","prompt":"I want my shopping agent to complete a single checkout on an e-commerce site without holding any standing payment credentials — walk me through how to issue a session key with the right TTL and spend ceiling for that one transaction."},{"title":"Scoped key for one-off SaaS trial purchase","prompt":"My agent is about to purchase a one-month SaaS trial and should never be able to bill that merchant again automatically — what's the decision procedure for creating a single-use, TTL-bound session key tied to exactly that purchase intent?"}],"resultDescription":"A structured decision procedure in prose form (the 'brief' field) that walks an agent through classifying the task as one-off, deciding between session vs standing key, scoping the key to a single merchant and rail, computing a spend ceiling, setting TTL and single-use flags, and binding the key to the specific purchase intent. Also includes metadata: service slug, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and model used.","failureModes":["Payment required but no x402 payment header provided — returns 402 with payment details","Invalid or unsupported HTTP method — returns error","Topic parameter ignored or misrouted if not recognized","LLM generation failure returns generationSource as deterministic fallback or error in ok field","Network timeout on ascii.dev host returns no response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs procedural guidance on how to safely issue a scoped, short-lived payment credential for a single purchase — particularly in x402 payment contexts where the agent should not retain standing keys. Prefer this over generic payment authorization docs when the task is explicitly one-off, merchant-specific, and requires TTL and spend-ceiling constraints. It is especially useful when the principal is absent and the agent must self-authorize within tight guardrails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:45:15.982Z","isFirstParty":false,"canonicalSlug":"scoped-session-key-issuance-procedure-for-one-off-agent-purchase-tasks-e5b0c26a"}