{"uid":"cap_sh3KEIFEr64aqDmRAW1yZ","slug":"avedaris-ephemeral-utility-lease-6822a15e","name":"AveDaris Ephemeral Utility Lease","description":"Issue a short-lived capability-token lease for a bounded declarative composition of approved AUN local utilities. $0.02 USDC per call on Base.","url":"https://api.avedaris.com/v1/paid/ephemeral-utility?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"plan":{"type":"object","required":["steps"],"properties":{"steps":{"type":"array","items":{"type":"object","required":["utilityId","args"],"properties":{"args":{"type":"object","description":"Arguments for the step's utility. A value may be a literal or a reference object {\"$ref\": \"input.<field>\"}, {\"$ref\": \"prev.<field>\"} or {\"$ref\": \"steps.<n>.<field>\"}; forward references are rejected."},"utilityId":{"type":"string","description":"Id of an approved local AUN utility to run in this step, e.g. text.slugify or base64.encode."}},"additionalProperties":false},"maxItems":4,"minItems":1,"description":"Ordered steps, 1 to 4. Each runs one approved local AUN utility."}},"description":"Composition to run on each invocation: an object with 1 to 4 ordered steps.","additionalProperties":false},"ttlSeconds":{"type":"integer","maximum":3600,"minimum":60,"description":"Lease lifetime in whole seconds, 60 to 3,600."},"maxInvocations":{"type":"integer","maximum":10,"minimum":1,"description":"How many times the issued capability token can be invoked, 1 to 10."}}},"responseSchema":{"type":"json","example":{"result":{"status":"awaiting_settlement","leaseId":"00000000-0000-4000-8000-000000000000","expiresAt":null,"invokeUrl":"https://api.avedaris.com/v1/ephemeral/00000000-0000-4000-8000-000000000000/invoke","activation":"settlement_gated","ttlSeconds":300,"tokenNotice":"returned_once_not_replayable","maxInvocations":2,"capabilityToken":"eph_returned_once"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T7xQCFBRl1B2VicEfEZic","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a time-limited, invocation-capped capability token that executes a composed sequence of 1–4 approved local AUN utilities on demand, gated by x402 payment settlement.","exampleAgentPrompt":"Set up an ephemeral utility lease that chains a JSON repair step followed by a text slugify step, valid for 5 minutes with up to 3 invocations.","exampleUseCases":[{"title":"Disposable pipeline for one-off agent task","prompt":"Create me an ephemeral token that runs a base64 encode step followed by a text slugify step — make it good for 10 minutes and allow up to 5 invocations."},{"title":"Settlement-gated single-use data transform","prompt":"Issue a single-use ephemeral capability that runs a JSON repair step, set the lease to expire after 60 seconds with only 1 allowed invocation."},{"title":"Short-lived multi-step utility chain for agent workflow","prompt":"I need a temporary invoke URL that chains up to 4 AUN utility steps — slugify, base64 encode, and JSON repair — lasting 30 minutes with a maximum of 10 calls."}],"resultDescription":"Returns a JSON object containing a capability token (returned once, non-replayable), a lease ID, an invoke URL for subsequent calls, the TTL in seconds, the max invocations allowed, an activation status of 'settlement_gated', and an expiry timestamp that populates after settlement.","failureModes":["Invalid utilityId references an unapproved or unknown AUN utility — request rejected","Forward references in step args (referencing a later step's output) — request rejected","TTL outside 60–3600 seconds range — validation error","maxInvocations outside 1–10 range — validation error","More than 4 steps in the plan — validation error","Payment settlement not received — capability token remains in awaiting_settlement state and invoke URL is not activated","Capability token already used the maximum number of times — invocation rejected","Lease expired — invoke URL no longer valid"],"whenToPreferThis":"Choose this endpoint when an agent needs to pre-compose a reusable but temporary pipeline of approved AUN utilities and expose it as a single callable URL with a fixed invocation budget and expiry — particularly useful for delegating a capped execution right to another agent or system without exposing full credentials. Prefer this over direct utility calls when you need settlement-gated access control, a fixed invocation cap, or a short-lived shareable endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:35:43.742Z","isFirstParty":false,"canonicalSlug":"avedaris-ephemeral-utility-lease-6822a15e"}