All workflows

Agent Delegation Contract Pack

Turn an A2A-style task into a deterministic machine-readable delegation contract with deliverables, acceptance rules, capability requirements, budget, deadline and a SHA-256 fingerprint.

2 credits per call · $0.02 USDC with x402

Sample input

{
  "objective": "Extract three verified product prices",
  "deliverables": [
    "JSON array with three products"
  ],
  "acceptance_rules": [
    {
      "id": "items",
      "path": "/items",
      "operator": "length_gte",
      "value": 3
    },
    {
      "id": "currency",
      "path": "/currency",
      "operator": "eq",
      "value": "USD"
    }
  ],
  "required_capabilities": [
    "web-research"
  ],
  "max_budget_usd": 0.5,
  "due_at": "2026-10-02T12:00:00Z"
}

Worked sample output

{
  "ok": true,
  "mode": "delegation_contract_pack",
  "contract": {
    "version": "agent-delegation-contract-v1",
    "objective": "Extract three verified product prices",
    "deliverables": [
      "JSON array with three products"
    ],
    "acceptance_rules": [
      {
        "id": "items",
        "path": "/items",
        "operator": "length_gte",
        "value": 3
      },
      {
        "id": "currency",
        "path": "/currency",
        "operator": "eq",
        "value": "USD"
      }
    ],
    "constraints": [],
    "required_capabilities": [
      "web-research"
    ],
    "budget": {
      "max_usd": 0.5
    },
    "due_at": "2026-10-02T12:00:00.000Z"
  },
  "contract_sha256": "a8d8aaef673747dbee613b813a11caa9528e2a2461b0142196bd0323311e33a2",
  "machine_ready": true,
  "limitations": [
    "Builds a deterministic caller-specified delegation contract; it does not negotiate terms or verify that a remote agent will honor them."
  ]
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/delegation-contract-pack' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 2' \
  --data '{"objective":"Extract three verified product prices","deliverables":["JSON array with three products"],"acceptance_rules":[{"id":"items","path":"/items","operator":"length_gte","value":3},{"id":"currency","path":"/currency","operator":"eq","value":"USD"}],"required_capabilities":["web-research"],"max_budget_usd":0.5,"due_at":"2026-10-02T12:00:00Z"}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/delegation-contract-pack. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "2"
  },
  "body": {
    "objective": "Extract three verified product prices",
    "deliverables": [
      "JSON array with three products"
    ],
    "acceptance_rules": [
      {
        "id": "items",
        "path": "/items",
        "operator": "length_gte",
        "value": 3
      },
      {
        "id": "currency",
        "path": "/currency",
        "operator": "eq",
        "value": "USD"
      }
    ],
    "required_capabilities": [
      "web-research"
    ],
    "max_budget_usd": 0.5,
    "due_at": "2026-10-02T12:00:00Z"
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe