{"uid":"cap_9lQK9itxTbZWNlCGfgd19","slug":"writerslogic-acceptance-receipt-24c4dd9b","name":"WritersLogic Acceptance Receipt","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/acceptance-receipt?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"label":{"type":"string","maxLength":200,"description":"Free text bound into the receipt, e.g. the task id."},"tests":{"type":"array","items":{"type":"object","required":["id","kind"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$"},"max":{"type":"number"},"min":{"type":"number"},"kind":{"enum":["equals","not-equals","exists","absent","type","contains","length-between","number-between","one-of","sha256","schema"],"type":"string"},"path":{"type":"string","maxLength":500,"description":"RFC 6901 JSON Pointer into output; empty or omitted = the whole output."},"value":{"description":"equals/not-equals/contains: the JSON value; type: a JSON type name; one-of: an array; sha256: lowercase hex; schema: a hub-subset JSON Schema."}},"additionalProperties":false},"maxItems":100,"minItems":1},"output":{"description":"The delivered JSON (at most 262144 bytes as JCS)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4xWoD0DPkaz7WhA2CNmvp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs deterministic acceptance tests against a JSON output and returns per-test results plus a cryptographically signed receipt certifying the tests passed on specific bytes.","exampleAgentPrompt":"Before I release payment for the report my sub-agent just delivered, run these acceptance tests on its JSON output — check that the 'status' field equals 'complete', that 'word_count' is between 500 and 2000, and that 'title' exists — label it task-42, and give me a signed receipt I can keep as proof.","exampleUseCases":[{"title":"Gate payment on sub-agent deliverable","prompt":"My writing sub-agent just returned a JSON result for job-77. Before I pay it, verify that the 'article' field exists, 'word_count' is between 800 and 1500, and 'language' equals 'en', then give me a signed receipt so I have proof the tests passed on those exact bytes."},{"title":"Validate vendor API output before pipeline continues","prompt":"I got a JSON response from my data vendor and I need to certify it before the next workflow step runs — check that 'records' is an array type, that 'count' is between 1 and 10000, and that 'checksum' matches the SHA256 hash a4b3c2d1e0f9..., label it vendor-batch-19, and return a signed acceptance receipt."},{"title":"Audit delegated research task results","prompt":"My research agent completed task research-session-04 and handed back a JSON blob — please run acceptance tests to confirm 'sources' exists and has length between 3 and 20, 'conclusion' is a string type, and 'confidence_score' is between 0.7 and 1.0, then sign a receipt so I can archive proof that these assertions passed on this exact output."}],"resultDescription":"Returns an array of per-test results (each with the test id, pass/fail status, and details), plus a hub-signed receipt containing the hash of the output, the hash of the test suite, and the hash of the results — providing cryptographic proof that specific tests passed on specific bytes.","failureModes":["Test assertion fails — returns per-test failure detail indicating which test did not pass and why","Output exceeds 262144 bytes JCS limit — rejected with size error","Invalid JSON Pointer path — test returns error for that assertion","Malformed test definition missing required 'id' or 'kind' fields — validation error","More than 100 tests submitted — rejected with maxItems error","SHA256 value not lowercase hex — test fails or is rejected","Schema subset not supported by hub — returns unsupported schema error"],"whenToPreferThis":"Use this endpoint when you need deterministic, cryptographically provable verification of a JSON payload — specifically before authorizing payment for delegated AI work, releasing a next pipeline step, or archiving audit proof. It is ideal when you need a signed receipt (not just a boolean pass/fail) that proves specific tests ran on specific bytes. Prefer it over ad-hoc JSON validation when auditability, non-repudiation, or multi-agent accountability is required. It is not a semantic evaluator — use it only for structural/value assertions you can express precisely.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:33:20.958Z","isFirstParty":false,"canonicalSlug":"writerslogic-acceptance-receipt-24c4dd9b"}