{"uid":"cap_-g21nkHjFOUDF1k2OUHxb","slug":"delx-await-promise-b33dc0a3","name":"Delx Await Promise","description":"Durable outcome promise for agents: pay $0.01 USDC once, wait for a time or signed webhook condition, then claim an opaque continuation envelope with an Ed25519 receipt. Idempotent replay, no subscription, no polling provider, and no continuation is exposed before the capability check.","url":"https://api.delx.ai/api/v1/x402/await","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ttl_ms":{"type":"integer","default":86400000,"maximum":604800000,"minimum":1},"delivery":{"type":"object","required":["mode"],"properties":{"url":{"type":"string","format":"uri","description":"HTTPS endpoint; required for webhook delivery."},"mode":{"enum":["claim","webhook"],"type":"string"}},"additionalProperties":false},"condition":{"type":"object","oneOf":[{"required":["kind","at"],"properties":{"at":{"type":"string","format":"date-time"},"kind":{"type":"string","const":"time"}},"additionalProperties":false},{"required":["kind","event_type"],"properties":{"kind":{"type":"string","const":"webhook"},"event_type":{"type":"string","maxLength":128,"minLength":1}},"additionalProperties":false}],"description":"A future timestamp or an inbound event type. External HTTP polling is intentionally disabled."},"idempotency_key":{"type":"string","maxLength":256,"minLength":1,"description":"Stable client key. Replaying the same paid request returns the same promise and capability."},"resume_envelope":{"type":"string","maxLength":32768,"minLength":1,"description":"Opaque client-owned continuation ciphertext. Delx stores and releases it only after capability authorization."}}},"responseSchema":{"type":"json","example":{"state":"waiting","schema":"delx/await/v1","receipt":{"schema":"delx/await-receipt/v1","algorithm":"Ed25519"},"delivery":{"mode":"claim","state":"claim_only","attempts":0,"event_id":null},"condition":{"kind":"webhook","event_type":"build.completed"},"capability":"opaque-capability-returned-on-create","created_at":"2026-08-04T16:00:00Z","expires_at":"2026-08-04T17:00:00Z","promise_id":"123e4567-e89b-12d3-a456-426614174000","resume_envelope_sha256":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KSxypd4vovaACq25DEa0H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a durable, paid promise that waits for a time or webhook condition, then releases an opaque continuation envelope with an Ed25519 receipt upon capability authorization.","exampleAgentPrompt":"Store my encrypted continuation envelope and wake me up in exactly 24 hours using a time condition — I want to claim the envelope with an Ed25519 receipt once the deadline passes, and use idempotency key 'order-resume-7821' so replays return the same promise.","exampleUseCases":[{"title":"Defer agent after payment approval","prompt":"I need to pause my agent right after submitting a payment and resume it once I get a webhook event with event type 'payment.confirmed' — store my continuation ciphertext and release it only after that event fires, using claim mode."},{"title":"Schedule overnight data pipeline resumption","prompt":"My data pipeline agent needs to sleep until tomorrow at 2025-08-01T06:00:00Z and then pick up where it left off — store the resume envelope now and let me claim it with a signed receipt at that exact time."},{"title":"Await external KYC verification webhook","prompt":"Hold my agent's continuation envelope until we receive an inbound webhook event of type 'kyc.approved', then release it via webhook delivery to https://myapp.example.com/resume so the agent can continue the onboarding flow."}],"resultDescription":"Returns a promise object containing a unique promise ID, the stored opaque continuation envelope (released only after the condition is met and capability is authorized), an Ed25519 cryptographic receipt confirming authenticity, and metadata about the condition and TTL. On idempotent replay with the same idempotency key, returns the identical promise and capability without re-charging.","failureModes":["Payment not received or x402 authorization fails — promise is not created","TTL exceeds maximum of 604800000ms (7 days) — validation error","Webhook delivery URL is missing when mode is set to 'webhook' — schema validation error","Condition object does not match either 'time' or 'webhook' oneOf schema — rejected","Resume envelope exceeds 32768 character limit — rejected","Condition timestamp is in the past for time-based conditions — may result in immediate or error response","Idempotency key collision with a different payload — conflict error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to durably suspend execution and resume only after a specific future time or an external event, without polling. It is ideal for long-running agentic workflows that require async checkpointing, secure continuation storage, and cryptographic proof of delivery. Prefer it over polling-based waits, cron jobs, or in-process timers when you need idempotent replay guarantees, a signed Ed25519 receipt, and zero exposure of the continuation before capability authorization. Best suited for x402-native agent pipelines that already handle micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:48:52.508Z","isFirstParty":false}