{"components":{"schemas":{"Envelope":{"properties":{"ciphertext_b64":{"description":"Base64-encoded encrypted payload","type":"string"},"eph_pubkey_b64":{"description":"Base64-encoded client ephemeral public key","type":"string"},"nonce_b64":{"description":"Base64-encoded AEAD nonce","type":"string"},"token_class":{"$ref":"#/components/schemas/TokenClass"},"v":{"example":1,"minimum":1,"type":"integer"}},"required":["v","token_class","eph_pubkey_b64","nonce_b64","ciphertext_b64"],"type":"object"},"TokenClass":{"enum":["c256","c512","c1024","c2048","c4096"],"type":"string"}}},"info":{"description":"Privacy relay for forwarding encrypted envelope payloads to the gateway.","title":"ZK LLM Relay API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/healthz":{"get":{"operationId":"healthz","responses":{"200":{"content":{"text/plain":{"schema":{"example":"ok","type":"string"}}},"description":"Relay is healthy"}},"summary":"Health check"}},"/relay":{"post":{"operationId":"relayEnvelope","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}},"description":"Encrypted envelope response from gateway"},"502":{"content":{"text/plain":{"schema":{"examples":{"gateway_error":{"value":"gateway error"},"gateway_unreachable":{"value":"gateway unreachable"}},"type":"string"}}},"description":"Gateway unreachable or returned error"},"504":{"content":{"text/plain":{"schema":{"example":"gateway timeout","type":"string"}}},"description":"Gateway timeout"}},"summary":"Forward encrypted envelope"}}},"servers":[{"url":"https://proxy.zerok.cloud"}]}