Start a human review task
Start a human review task.
Marks the task as in progress for the current user. This endpoint:
- Creates an in-progress record linking the user to the task
- Changes task status from ‘pending’ to ‘in_progress’ (if it’s pending)
- Returns 409 if the task is already completed
- Can be called multiple times for the same user (idempotent)
- Creates a timeout schedule to automatically unstart the task if it remains IN_PROGRESS beyond the configured timeout
Context:
- Only authenticated users can start tasks
- Updates assignment status to ‘in_progress’ and sets started_at timestamp
- Updates task status if currently pending
- Organization ID is automatically set from the current user’s context
Use Cases:
- User begins working on an assigned review task
- Track which users are currently working on which tasks
- Prevent starting already completed tasks
Related Endpoints:
- GET /human-review-tasks - List all assigned tasks
- POST /human-review-tasks - Create a new review task
Authorizations
API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY
Example:
JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN
Example:
Path Parameters
Response
Human review task started successfully
Response model for human review task operations.
UUID of the flow execution this task is associated with.
"550e8400-e29b-41d4-a716-446655440000"
UUID of the organization this task belongs to.
"550e8400-e29b-41d4-a716-446655440000"
Index of the source task execution that created this review.
0
Name of the source task that created this review.
"process_document"
Status of the task. Valid values: 'pending', 'in_progress', 'completed'.
"pending"
Index of the target task execution.
0
Name of the target task being reviewed.
"receive_file"
Timestamp when the task was completed. Null for not completed tasks.
"2024-01-01T00:00:00Z"
UUID of the user who completed this task. Null for not completed tasks.
"550e8400-e29b-41d4-a716-446655440000"
Instructions for the human reviewer on how to complete this task.
"Please review the document and verify all dates are correct."
Review result: True for correct, False for incorrect, null for not yet finished.
true
JSON output of the completed review. Null for not yet completed tasks.
Additional metadata associated with the human review task.