Base URL
Authentication
All API requests require an API key in theAuthorization header:
Core Endpoints
Create Review Task
POST /review-tasks
Submit an AI request for approval.
Get Review Task Status
GET /review-tasks/{taskId}
Check the current status of a review task.
Response:
List Review Tasks
GET /review-tasks
Retrieve tasks with optional filtering.
Query Parameters:
status- Filter by task statuslimit- Number of tasks to return (max 100)offset- Pagination offsetfrom- Start date filterto- End date filter
Status Values
pending- Just created, not processed yetprocessing- Being evaluated against policiesapproved- Automatically or manually approvedrequires_intervention- Waiting for human reviewrejected- Human reviewer declined requestchange_requested- Modifications needed
Webhooks
Setup
POST /webhooks
Event Types
task.created- New review task submittedtask.requires_intervention- Human approval neededtask.completed- Final decision madetask.timeout- Review timeout reached
Webhook Payload
Error Handling
Error Response Format
Common Error Codes
AUTHENTICATION_FAILED- Invalid or missing API keyRATE_LIMIT_EXCEEDED- Too many requestsINVALID_REQUEST- Malformed request dataTASK_NOT_FOUND- Review task doesnβt existPOLICY_ERROR- Policy evaluation failed
Rate Limits
- Standard Plan: 1000 requests per hour
- Business Plan: 10,000 requests per hour
- Enterprise Plan: Custom limits