# Delx Commerce Await — Async Promise Creation

> Delx Commerce Await — Async Promise Creation is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Creates a pay-per-result asynchronous promise that waits for a scheduled time or inbound webhook event, then delivers a stored continuation envelope via claim or webhook

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/await?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-await-async-promise-creation-1b8eee48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6sso47Gi2A6n_SJ4GL-P4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-await-async-promise-creation-1b8eee48 -d '<json body>'
```

Example prompt: Wait for a webhook event called 'build.completed' for up to 1 hour, then deliver the result to https://myapp.example.com/resume using webhook mode — store this continuation payload so it's only released once the condition is met.

## When to prefer this

Choose this endpoint when an AI agent needs to park execution and resume only after a future event or scheduled time — especially when you need cryptographic proof of delivery, idempotent replay safety, and a pay-per-result model without account signup. Prefer this over polling or sleep-loop patterns when the trigger is an external webhook event or a precise timestamp, and you need the continuation payload stored securely off-agent until authorization.

## Known failure modes

- Invalid condition schema (missing required 'at' or 'event_type' field) returns a 400 validation error
- TTL exceeding 604800000ms (7 days) is rejected
- Malformed resume_envelope exceeding 32768 characters is rejected
- Duplicate idempotency_key with a different payload may return conflict or the original promise
- Webhook delivery URL missing or not HTTPS when mode is 'webhook' causes rejection
- Payment not received or insufficient USDC causes 402 response blocking promise creation

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a promise object containing a unique promise_id, an opaque capability token, the condition and delivery configuration, timestamps for creation and expiry, the delivery state (claim_only or webhook), and a SHA-256 hash of the stored resume envelope. The receipt includes an Ed25519 signature for verifiable delivery.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-await-async-promise-creation-1b8eee48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
