Skip to content

API Reference

The ReArch API allows you to programmatically interact with agents, pipelines, and project resources.

https://api.rearch.engineer/v1

All API requests must include an Authorization header with a valid API key.

Terminal window
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.rearch.engineer/v1/agents
GET /v1/agents

Response:

{
"data": [
{
"id": "agent_abc123",
"name": "code-reviewer",
"status": "active",
"created_at": "2025-01-15T10:30:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 20
}
}
POST /v1/agents

Request Body:

FieldTypeRequiredDescription
namestringYesAgent name (unique within project)
typestringYesAgent type: reviewer, builder, deployer
configobjectNoAgent-specific configuration

Example:

Terminal window
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 /v1/agents/:id
DELETE /v1/agents/:id
GET /v1/pipelines
POST /v1/pipelines/:id/run

Request Body:

FieldTypeRequiredDescription
inputobjectYesInput data for the pipeline
asyncbooleanNoRun asynchronously (default: false)
webhook_urlstringNoURL to notify on completion
GET /v1/projects/:id
GET /v1/projects/:id/runs
CodeDescription
400Bad Request — Invalid parameters
401Unauthorized — Invalid or missing API key
403Forbidden — Insufficient permissions
404Not Found — Resource does not exist
429Too Many Requests — Rate limit exceeded
500Internal Server Error
PlanRequests/minuteRequests/day
Free601,000
Pro30010,000
EnterpriseCustomCustom