Data Quality Gate
Accept or reject batches of up to 200 records using schema validation and composite uniqueness checks before data enters a workflow.
2 credits per call · $0.02 USDC with x402
Sample input
{
"records": [
{
"id": "a",
"price": 25
},
{
"id": "a",
"price": 25
}
],
"schema": {
"type": "object",
"required": [
"id",
"price"
],
"properties": {
"id": {
"type": "string"
},
"price": {
"type": "number"
}
}
},
"unique_by": [
"id"
]
}Worked sample output
{
"ok": true,
"mode": "data_quality_gate",
"decision": "reject",
"record_count": 2,
"invalid_record_count": 1,
"issue_count": 1,
"issues": [
{
"index": 1,
"issues": [
{
"code": "duplicate_key",
"first_index": 0,
"fields": [
"id"
]
}
]
}
],
"issues_truncated": false,
"records_sha256": "fe545e38479d5ecce90ac6f4b7593e9016b0d1b214ded8b8042cf3b59a1ae097",
"limitations": [
"Checks supplied schema and composite uniqueness of top-level fields. No real-world accuracy or identity verification."
]
}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/data-quality-gate' \
-H "Authorization: Bearer $BOUNTY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: workflow-request-001' \
-H 'X-Max-Credits: 2' \
--data '{"records":[{"id":"a","price":25},{"id":"a","price":25}],"schema":{"type":"object","required":["id","price"],"properties":{"id":{"type":"string"},"price":{"type":"number"}}},"unique_by":["id"]}'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/data-quality-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": {
"records": [
{
"id": "a",
"price": 25
},
{
"id": "a",
"price": 25
}
],
"schema": {
"type": "object",
"required": [
"id",
"price"
],
"properties": {
"id": {
"type": "string"
},
"price": {
"type": "number"
}
}
},
"unique_by": [
"id"
]
}
}Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe