Base URLs
- Hosted
- Self-Hosted
Authentication
All API requests require authentication via API key header:Get your API key from the dashboard (hosted) or run
make reissue-key (self-hosted).API Structure
The API is organized into several groups:Platform Endpoints
Core functionality: environments, runs, diffs
/api/platform/initEnv/api/platform/startRun/api/platform/evaluateRun/api/platform/results/{runId}
Template Endpoints
Manage environment templates
/api/platform/templates/api/platform/templates/{id}
Test Suite Endpoints
Manage test suites and tests
/api/platform/testSuites/api/platform/testSuites/{id}
Service APIs
Isolated service replicas
/api/env/{id}/services/slack/*/api/env/{id}/services/linear/*
Response Format
Success Response
Error Response
Common Error Codes
Rate Limits
- Hosted
- Self-Hosted
SDKs
We recommend using our SDKs instead of calling the API directly:Python SDK
pip install agent-diffTypeScript SDK
npm install agent-diff