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 status
- limit- Number of tasks to return (max 100)
- offset- Pagination offset
- from- Start date filter
- to- End date filter
Status Values
- pending- Just created, not processed yet
- processing- Being evaluated against policies
- approved- Automatically or manually approved
- requires_intervention- Waiting for human review
- rejected- Human reviewer declined request
- change_requested- Modifications needed
Webhooks
Setup
POST /webhooks
Event Types
- task.created- New review task submitted
- task.requires_intervention- Human approval needed
- task.completed- Final decision made
- task.timeout- Review timeout reached
Webhook Payload
Error Handling
Error Response Format
Common Error Codes
- AUTHENTICATION_FAILED- Invalid or missing API key
- RATE_LIMIT_EXCEEDED- Too many requests
- INVALID_REQUEST- Malformed request data
- TASK_NOT_FOUND- Review task doesnβt exist
- POLICY_ERROR- Policy evaluation failed
Rate Limits
- Standard Plan: 1000 requests per hour
- Business Plan: 10,000 requests per hour
- Enterprise Plan: Custom limits