{"openapi":"3.1.0","info":{"title":"AriaEren Dev Utilities x402 API","version":"1.0.0","description":"Tiny pay-per-call developer utilities for AI agents and coding tools: hashing, JSON inspector, JWT decoder, QR codes, regex tester. USDC on Base via x402.","x-guidance":"Developer utilities, all GET with query params: /v1/hash (sha1/256/384/512), /v1/json/inspect, /v1/jwt/decode, /v1/qr (SVG), /v1/regex/test. Pay per call with x402 (USDC on Base).","contact":{"name":"AriaEren Dev Utilities x402 API","url":"https://api.ariaeren.dev"}},"servers":[{"url":"https://api.ariaeren.dev"}],"paths":{"/v1/hash":{"get":{"operationId":"v1_hash","summary":"Compute a cryptographic digest of text (SHA-1, SHA-256, SHA-384 or SHA-512)","description":"Compute a cryptographic digest of text (SHA-1, SHA-256, SHA-384 or SHA-512). Returns hex and base64. Input up to 10,000 characters, UTF-8.","parameters":[{"name":"text","in":"query","required":true,"description":"Text to hash (max 10000 chars)","schema":{"type":"string"}},{"name":"algo","in":"query","required":false,"description":"Algorithm, default sha256","schema":{"type":"string","enum":["sha1","sha256","sha384","sha512"]}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"algo":"sha256","bytes":11,"hex":"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9","base64":"uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek="}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/json/inspect":{"get":{"operationId":"v1_json_inspect","summary":"Validate a JSON string and inspect it: valid or not (with error message), pretty-printed and minified forms, root type, maximum depth, key count and size","description":"Validate a JSON string and inspect it: valid or not (with error message), pretty-printed and minified forms, root type, maximum depth, key count and size. Input up to 20,000 characters.","parameters":[{"name":"json","in":"query","required":true,"description":"JSON text to validate (max 20000 chars)","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"valid":true,"rootType":"object","depth":3,"keyCount":2,"bytes":22,"minified":"{\"a\":[1,2,{\"b\":null}]}","pretty":"{\n  \"a\": [\n    1,\n    2,\n    {\n      \"b\": null\n    }\n  ]\n}"}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/jwt/decode":{"get":{"operationId":"v1_jwt_decode","summary":"Decode a JSON Web Token's header and payload and report expiry (exp/iat/nbf) status","description":"Decode a JSON Web Token's header and payload and report expiry (exp/iat/nbf) status. Does NOT verify the signature, so never treat the result as proof of authenticity.","parameters":[{"name":"token","in":"query","required":true,"description":"JWT (three dot-separated base64url parts)","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"header":{"alg":"HS256","typ":"JWT"},"payload":{"sub":"123","exp":4102444800},"signatureVerified":false,"expired":false,"expiresAt":"2100-01-01T00:00:00.000Z"}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/qr":{"get":{"operationId":"v1_qr","summary":"Generate a QR code as an SVG string for any text or URL (up to 500 characters)","description":"Generate a QR code as an SVG string for any text or URL (up to 500 characters). Error correction level selectable (L, M, Q, H). Returns the SVG markup and module count.","parameters":[{"name":"text","in":"query","required":true,"description":"Text or URL to encode (max 500 chars)","schema":{"type":"string"}},{"name":"ecc","in":"query","required":false,"description":"Error correction level, default M","schema":{"type":"string","enum":["L","M","Q","H"]}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"text":"https://ariaeren.dev","ecc":"M","modules":25,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" ...></svg>"}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/regex/test":{"get":{"operationId":"v1_regex_test","summary":"Test a JavaScript regular expression against text: returns up to 100 matches with index and capture groups (named groups included)","description":"Test a JavaScript regular expression against text: returns up to 100 matches with index and capture groups (named groups included). Pattern max 200 chars, text max 5,000 chars, flags from dgimsuy.","parameters":[{"name":"pattern","in":"query","required":true,"description":"Regex source without slashes","schema":{"type":"string"}},{"name":"flags","in":"query","required":false,"description":"Flags, e.g. g, i, m","schema":{"type":"string"}},{"name":"text","in":"query","required":true,"description":"Text to test (max 5000 chars)","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"valid":true,"matchCount":2,"matches":[{"match":"2026-11","index":0,"groups":["2026","11"],"named":null}]}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/health":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/llms.txt":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/.well-known/x402":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}}}}