{"openapi":"3.0.3","info":{"title":"RegBase — Japan Company Verification API (Sandbox)","version":"1.0.0","description":"Verifiable evidence records about Japanese companies by 13-digit corporate number. Records are Ed25519-signed JSON; every claim cites its source dataset and as-of date. Free sandbox tier for evaluation; signed records are the product of the paid tiers (included from the $99/mo tier). A signature attests issuer + integrity only, never the truth of the claims. Not a compliance product."},"servers":[{"url":"https://regbase.local-connect-design.trade","description":"Live sandbox endpoint (Cloudflare Workers)"}],"paths":{"/health":{"get":{"summary":"Service status","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"key_id":{"type":"string"},"listed_records":{"type":"integer"},"extract_records":{"type":"integer"}}}}}}}}},"/records":{"post":{"summary":"Issue a signed record for a corporate number","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["corporate_number"],"properties":{"corporate_number":{"type":"string","pattern":"^[0-9]{13}$","example":"1180301018771"}}}}}},"responses":{"200":{"description":"The signed record"},"400":{"description":"BAD_REQUEST or INVALID_CORPORATE_NUMBER","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/record/{corporate_number}":{"get":{"summary":"Issue a signed record (GET form of POST /records)","parameters":[{"name":"corporate_number","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{13}$"}}],"responses":{"200":{"description":"The signed record"},"400":{"description":"INVALID_CORPORATE_NUMBER","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/verify":{"post":{"summary":"Verify a signed record (shape, algorithm, key_id, signature — never claim truth)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The record object itself"}}}},"responses":{"200":{"description":"{\"valid\": true, \"key_id\": ..., \"corporate_number\": ...}"},"400":{"description":"RECORD_MALFORMED, UNSUPPORTED_ALGORITHM, KEY_ID_MISMATCH or SIGNATURE_INVALID","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}}}