{"openapi":"3.1.0","info":{"title":"JurisRAG API","version":"1.0.0","description":"Agent-native, x402-paid access to normalized public Brazilian judicial data."},"servers":[{"url":"https://jurisrag-api.lcalado.chatgpt.site"}],"paths":{"/api/v1/processos/search":{"post":{"operationId":"searchBrazilianCourtCases","summary":"Search public Brazilian judicial cases","description":"Costs US$0.01 in USDC per successful request via x402. Direct endpoint: https://jurisrag-api.lcalado.chatgpt.site/api/v1/processos/search","security":[{"x402":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tribunal":{"type":"string","examples":["tjsp","stj","trf3","trt2"]},"numero_processo":{"type":"string"},"limite":{"type":"integer","minimum":1,"maximum":100},"query":{"type":"object"}},"required":["tribunal"]}}}},"responses":{"200":{"description":"Normalized judicial results"},"400":{"description":"Invalid query; payment is not settled"},"402":{"description":"Payment Required; PAYMENT-REQUIRED header contains x402 v2 terms"},"502":{"description":"Official source unavailable; payment is not settled"}}}},"/api/mcp":{"post":{"operationId":"jurisRagMcp","summary":"JurisRAG MCP Streamable HTTP endpoint","description":"Free initialize and tools/list; tools/call is protected by x402.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"MCP JSON-RPC response"},"402":{"description":"x402 payment required for tools/call"}}}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 v2 signed USDC payment authorization"}}}}