Endpoint
Copy
POST /reviews
Request Body
Copy
{
"task_type": "payment",
"proposed_action": "Process payment of $5,000 to ACME Corp",
"agent_reasoning": "Payment exceeds auto-approval limit",
"confidence_score": 0.85,
"urgency": "high",
"framework": "custom",
"metadata": {},
"organization_id": 1,
"agent_id": 1,
"blocking": false
}
Response
Copy
{
"id": 1,
"task_type": "payment",
"proposed_action": "Process payment of $5,000 to ACME Corp",
"status": "pending",
"created_at": "2024-01-01T12:00:00Z",
"decision": null
}
Example
Copy
import httpx
async with httpx.AsyncClient() as client:
response = await client.post(
"https://api.humancheck.dev/reviews",
headers={
"Authorization": "Bearer your-api-key-here",
"Content-Type": "application/json"
},
json={
"task_type": "payment",
"proposed_action": "Process payment of $5,000",
"agent_reasoning": "High-value payment",
"confidence_score": 0.85,
"urgency": "high",
"blocking": True
}
)
review = response.json()