All workflows

Task Acceptance Gate

Automatically accept or reject an agent deliverable against explicit machine-readable postconditions before payment, handoff or downstream execution.

2 credits per call · $0.02 USDC with x402

Sample input

{
  "deliverable": {
    "items": [
      1,
      2,
      3
    ],
    "currency": "USD"
  },
  "acceptance_rules": [
    {
      "id": "items",
      "path": "/items",
      "operator": "length_gte",
      "value": 3
    },
    {
      "id": "currency",
      "path": "/currency",
      "operator": "eq",
      "value": "USD"
    }
  ]
}

Worked sample output

{
  "ok": true,
  "mode": "task_acceptance_gate",
  "decision": "accept",
  "rule_count": 2,
  "passed_count": 2,
  "failed_count": 0,
  "results": [
    {
      "id": "items",
      "path": "/items",
      "operator": "length_gte",
      "pass": true,
      "found": true
    },
    {
      "id": "currency",
      "path": "/currency",
      "operator": "eq",
      "pass": true,
      "found": true
    }
  ],
  "deliverable_sha256": "260ea9aec34b1b5252752ad0bb1f9ad26b2fef3494a86491bc4fcbf7702c59ed",
  "limitations": [
    "Evaluates explicit deterministic rules only. It does not judge subjective quality, truth, safety or legal compliance."
  ]
}

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/task-acceptance-gate' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 2' \
  --data '{"deliverable":{"items":[1,2,3],"currency":"USD"},"acceptance_rules":[{"id":"items","path":"/items","operator":"length_gte","value":3},{"id":"currency","path":"/currency","operator":"eq","value":"USD"}]}'

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/task-acceptance-gate. 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": {
    "deliverable": {
      "items": [
        1,
        2,
        3
      ],
      "currency": "USD"
    },
    "acceptance_rules": [
      {
        "id": "items",
        "path": "/items",
        "operator": "length_gte",
        "value": 3
      },
      {
        "id": "currency",
        "path": "/currency",
        "operator": "eq",
        "value": "USD"
      }
    ]
  }
}

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