Diagnose 401/402 paid retry failures and get next auth plan — 9 sats
Debug paid retries that still fail after invoice settlement. Provide retry status/error and request headers to identify likely auth mismatches and generate the next retry plan.
9 sats via L402.
curl -X POST https://maximumsats.com/api/l402-auth-diagnose \
-H "Content-Type: application/json" \
-d '{"endpoint_payment_hash":"<target_hash>","retry_status":401,"retry_error":"invalid_auth_format","attempt_headers":{"Authorization":"L402 <hash>"}}'
{
"ok": true,
"diagnosis": {
"retry_status": 401,
"likely_causes": [
"Target rejected auth format; replay likely needs a different proof location or macaroon:proof Authorization."
]
},
"next_auth_plan": {
"replay_order": [
"query_payment_hash",
"x_payment_hash_header",
"authorization_l402_hash",
"authorization_l402_macaroon_proof"
]
}
}