API Reference

Complete reference for the ReformCode REST API. Use these endpoints to integrate AI-powered code analysis into your applications.

Getting Started

Learn how to authenticate and make your first API call.

Read the guide →

Rate Limits

Understand rate limiting and how to handle 429 responses.

Learn more →

API Keys

Manage keys, scopes, onboarding status, and usage from Settings.

Open developer settings →

Endpoints

GET/api/v1/healthHealth checkNo auth
GET/api/v1/searchUniversal searchNo auth
GET/api/trust/networkTrust graph snapshot with Code Genome intelligenceNo auth
POST/api/v1/analyze/streamAI code analysis (SSE)Auth required
POST/api/v1/transform/streamAI code transformation (SSE)Auth required

Quick 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