The following example shows a complete 427 challenge, the Agent's
follow-up request body containing a Budget-Attestation envelope (in
CBOR diagnostic notation per Section 8 of [RFC8949]), and the
Verifier's response.¶
HTTP/1.1 427 Budget Required
Date: Tue, 05 May 2026 14:00:00 GMT
Cache-Control: no-store
Content-Type: application/problem+json
Protocol-427-Version: 1
WWW-Authenticate: Budget realm="api.example",
alg="ML-DSA-87",
rails="x402 l402 mpp",
nonce="QMjVqg5Xb6yV0bO_t9X8gQ",
max-age=900
{ "type": "https://taskhawktech.com/problems/budget-required",
"title": "Budget attestation required",
"status": 427,
"min-budget": {"USD": 250},
"accepted-rails": ["x402","l402","mpp"],
"max-age": 900,
"protocol-version": 1 }
¶
POST /research/papers/12345 HTTP/1.1
Host: api.example
Content-Type: application/budget-attestation+cose
Authorization: Budget binding="lQ7M...base64url-sha256..."
[ << { 1: -50 } >>,
{},
<< { "version": 1,
"iss": "https://op.example/operators/42",
"agent": "agent-7c2e",
"iat": 1746453600,
"exp": 1746454500,
"nonce": h'40c8d5aa0e576fac95d1b3bfb7d5fc81',
"rb": { "method": "POST",
"uri-h": h'a3f1...',
"body-h": h'0000...' },
"rails": ["x402","l402","mpp"],
"amt": { "USD": 250 } } >>,
[ [ << { 1: -50, "role": "operator" } >>,
{},
h'<ML-DSA-87 signature, 4627 bytes>' ] ] ]
¶