{
  "format": "delx/intent-card/v1",
  "id": "idempotency-key-api",
  "intent": "Idempotency Key for an agent workflow",
  "title": "Idempotency Key API for agents",
  "description": "Derive a deterministic namespaced idempotency key from canonical JSON. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.",
  "keywords": [
    "Idempotency Key API",
    "Idempotency Key for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/idempotency-key-api",
  "machine_url": "https://commerce.delx.ai/intents/idempotency-key-api.json",
  "recommendation": {
    "tool_name": "util_idempotency_key",
    "service_name": "Delx Idempotency Key",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/idempotency-key",
    "price_usdc": "0.002",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "payload": {
          "description": "JSON value whose canonical representation identifies one logical operation."
        },
        "namespace": {
          "type": "string",
          "maxLength": 200,
          "default": "default"
        }
      },
      "required": [
        "payload"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "payload": {
        "job_id": "42",
        "action": "resume"
      }
    },
    "example_output": {
      "schema": "delx/idempotency-key/v1",
      "key": "delx_ca094a4752e182cfcac50a38d65de7c7e4f271ee05c08f26853c75f0ba24b049",
      "algorithm": "sha256",
      "namespace": "default",
      "payload_sha256": "f85c6736261be7d990522f91e81634f844ad23c515f3b4029e197ab01a2d18dc"
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/idempotency-key -m POST -H 'x-delx-source: intent-card-idempotency-key-api' --max-amount 0.002 -b '{\"payload\":{\"job_id\":\"42\",\"action\":\"resume\"}}'",
      "max_amount_usdc": "0.002"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-idempotency-key-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/idempotency-key"
  }
}
