API Reference
The ReArch API allows you to programmatically interact with agents, pipelines, and project resources.
Base URL
Section titled “Base URL”https://api.rearch.engineer/v1All API requests must include an Authorization header with a valid API key.
Authentication
Section titled “Authentication”curl -H "Authorization: Bearer YOUR_API_KEY" \ https://api.rearch.engineer/v1/agentsEndpoints
Section titled “Endpoints”Agents
Section titled “Agents”List Agents
Section titled “List Agents”GET /v1/agentsResponse:
{ "data": [ { "id": "agent_abc123", "name": "code-reviewer", "status": "active", "created_at": "2025-01-15T10:30:00Z" } ], "meta": { "total": 1, "page": 1, "per_page": 20 }}Create Agent
Section titled “Create Agent”POST /v1/agentsRequest Body:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Agent name (unique within project) |
type | string | Yes | Agent type: reviewer, builder, deployer |
config | object | No | Agent-specific configuration |
Example:
curl -X POST https://api.rearch.engineer/v1/agents \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "my-reviewer", "type": "reviewer", "config": { "language": "typescript", "strictMode": true } }'Get Agent
Section titled “Get Agent”GET /v1/agents/:idDelete Agent
Section titled “Delete Agent”DELETE /v1/agents/:idPipelines
Section titled “Pipelines”List Pipelines
Section titled “List Pipelines”GET /v1/pipelinesRun Pipeline
Section titled “Run Pipeline”POST /v1/pipelines/:id/runRequest Body:
| Field | Type | Required | Description |
|---|---|---|---|
input | object | Yes | Input data for the pipeline |
async | boolean | No | Run asynchronously (default: false) |
webhook_url | string | No | URL to notify on completion |
Projects
Section titled “Projects”Get Project
Section titled “Get Project”GET /v1/projects/:idList Project Runs
Section titled “List Project Runs”GET /v1/projects/:id/runsError Codes
Section titled “Error Codes”| Code | Description |
|---|---|
400 | Bad Request — Invalid parameters |
401 | Unauthorized — Invalid or missing API key |
403 | Forbidden — Insufficient permissions |
404 | Not Found — Resource does not exist |
429 | Too Many Requests — Rate limit exceeded |
500 | Internal Server Error |
Rate Limits
Section titled “Rate Limits”| Plan | Requests/minute | Requests/day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 300 | 10,000 |
| Enterprise | Custom | Custom |