API Reference
Complete reference for the ReformCode REST API. Use these endpoints to integrate AI-powered code analysis into your applications.
Endpoints
GET
/api/v1/healthHealth checkNo authGET
/api/v1/searchUniversal searchNo authGET
/api/trust/networkTrust graph snapshot with Code Genome intelligenceNo authPOST
/api/v1/analyze/streamAI code analysis (SSE)Auth requiredPOST
/api/v1/transform/streamAI code transformation (SSE)Auth requiredQuick Example
Search for React-related packages across GitHub, NPM, and Docker:
curl -X GET "https://reformcode.com/api/v1/search?q=react&limit=5" \
-H "Accept: application/json"Resolve a public Trust Network snapshot with Code Genome benchmarks:
curl -X GET "https://reformcode.com/api/trust/network?kind=comparison&target=package:react..vs..package:vue..vs..package:svelte" \
-H "Accept: application/json"Analyze code with AI using a key from Settings → Developers:
curl -X POST "https://reformcode.com/api/v1/analyze/stream" \
-H "Authorization: Bearer $REFORMCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "function add(a, b) { return a + b; }",
"language": "javascript",
"prompt": "Review this code for best practices"
}'Want the full specification? Download the OpenAPI 3.1 file:
Download OpenAPI Spec