Tasks
Task and annotation management
Retrieves all tasks for a specific project with optional filtering
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
Page number (1-indexed). Sending it without limit sets the page size to 10. Without it no rows are skipped.
Items per page. Not capped by the server. Without it and without page, every matching row is returned; listProjects is the exception, see its own description.
JSON stringified filter object (MongoDB-style query)
Filter by task status
Filter by stage ID
Filter by assignee email
Filter by a single batch id, or a JSON array string of batch ids (e.g. ["id1","id2"])
Tasks retrieved successfully
successBad request - validation error
curl -X GET "https://imeritapi.ango.ai/v2/project/YOUR_PROJECT_ID/tasks?page=1&limit=10&status=Completed&stage=Label" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"status": "success",
"data": {
"tasks": [
{
"_id": "text",
"project": "text",
"asset": "text",
"stage": "text",
"status": "text",
"assignee": "text",
"externalId": "text",
"batches": [
"text"
],
"priority": 1,
"answer": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"duration": 1
}
],
"total": 1
}
}Move tasks from one stage to another based on filter criteria
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
Destination stage ID
Tasks requeued successfully
successBad request - validation error
curl -X POST "https://imeritapi.ango.ai/v2/project/YOUR_PROJECT_ID/requeueTasks" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"toStageId": "stageId1",
"filters": {
"fromStageIds": ["stageId2", "stageId3"],
"batches": ["batchId1", "batchId2"]
},
"options": {
"removeAnnotations": false,
"removeAssignee": true,
"removeStageHistory": false
}
}'
{
"status": "success",
"data": {
"modifiedCount": 1
}
}Update priority for multiple tasks based on filter criteria
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
Priority value (-1000 to 1000)
Priority updated successfully
successBad request - validation error
POST /v2/project/{projectId}/updatePriority HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 144
{
"priority": 1,
"filters": {
"taskIds": [
"text"
],
"externalIds": [
"text"
],
"assetIds": [
"text"
],
"fromStageIds": [
"text"
],
"batches": [
"text"
]
},
"options": {}
}{
"status": "success",
"data": {
"result": {
"modifiedCount": 1,
"priority": 1
}
}
}Turns tasks into benchmark tasks, or turns them back. Only tasks currently in the opposite state are touched, and tasks that are themselves benchmark or consensus copies are skipped, so the returned count can be lower than what you sent. Every task it does touch is moved to the Complete stage, loses its assignee, has its running durations folded into the totals and is dropped from the work queues. With isBenchmark true, one benchmark copy is created for every project member (each assignee plus the owner) on every task, so the number of new tasks is tasks times members; with false the existing copies are deleted. Task IDs that belong to another project, or that are already deleted, are skipped as well. Any field outside tasks and isBenchmark is rejected with 400.
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
Task IDs, each a 24 character hex string
True marks the tasks as benchmark, false reverts them
Benchmark flag applied
successBad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Resource not found
curl -X POST "https://imeritapi.ango.ai/v2/project/YOUR_PROJECT_ID/benchmark-tasks" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tasks": ["507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"],
"isBenchmark": true
}'
{
"status": "success",
"data": {
"benchmarkTasks": {
"isBenchmark": true,
"modifiedCount": 1,
"tasks": [
"text"
]
}
}
}Retrieves detailed information about a specific task
API key for authentication. Format - apikey YOUR_API_KEY
Task ID
Task retrieved successfully
successResource not found
curl -X GET "https://imeritapi.ango.ai/v2/task/YOUR_TASK_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json"
{
"status": "success",
"data": {
"task": {
"_id": "text",
"project": "text",
"asset": "text",
"stage": "text",
"status": "text",
"assignee": "text",
"externalId": "text",
"batches": [
"text"
],
"priority": 1,
"answer": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"duration": 1
}
}
}Retrieves the complete history of changes for a task
API key for authentication. Format - apikey YOUR_API_KEY
Task ID
Include the annotation answer in each history entry (default true; set "false" to strip)
truePossible values: Task history retrieved successfully
successGET /v2/task/{taskId}/history HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
Task history retrieved successfully
{
"status": "success",
"data": {
"taskHistory": [
{
"_id": "text",
"labelTaskId": "text",
"project": "text",
"organization": "text",
"asset": {
"_id": "text",
"id": "text",
"data": "text",
"dataset": [
"text"
],
"overlay": [
"text"
],
"head": "text",
"project": "text",
"organization": "text",
"storage": "text",
"externalId": "text",
"editorType": "ango",
"uploadStatus": "READY",
"isPrivate": true,
"isPreLabeled": true,
"batches": [
"text"
],
"metadata": {
"width": 1,
"height": 1,
"size": 1,
"frameStep": 1,
"frameTotal": 1,
"frameRate": 1,
"numOfPages": 1,
"numOfWords": 1,
"duration": 1,
"hasVariableFrameRate": true
},
"attachments": [
{
"type": "text",
"value": "text",
"label": {}
}
],
"contextData": {},
"labelTasks": [
{
"_id": "text",
"id": "text",
"stage": "text",
"assignee": "text"
}
],
"deleted": true,
"preprocessEnqueuedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text"
},
"stage": "text",
"assignee": "text",
"prevAssignee": "text",
"reviewStatus": "Accepted",
"rework": true,
"isSkipped": true,
"type": "text",
"answer": {},
"duration": 1,
"idleDuration": 1,
"blurDuration": 1,
"batches": [
"text"
],
"consensusAverage": 1,
"consensusDetailed": [
{}
],
"consensusIteration": 1,
"benchmarkAverage": 1,
"benchmarkDetailed": [
{}
],
"brushDataUrl": "text",
"medicalBrushDataUrl": "text",
"rootStageId": "text",
"deleted": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text"
}
],
"total": 1
}
}Retrieves a specific task history entry by ID
API key for authentication. Format - apikey YOUR_API_KEY
Task history entry ID
Include the annotation answer in the entry (default true; set "false" to strip)
truePossible values: Task history entry retrieved successfully
successGET /v2/taskHistory/{taskHistoryId} HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
Task history entry retrieved successfully
{
"status": "success",
"data": {
"taskHistory": {
"_id": "text",
"labelTaskId": "text",
"project": "text",
"organization": "text",
"asset": {
"_id": "text",
"id": "text",
"data": "text",
"dataset": [
"text"
],
"overlay": [
"text"
],
"head": "text",
"project": "text",
"organization": "text",
"storage": "text",
"externalId": "text",
"editorType": "ango",
"uploadStatus": "READY",
"isPrivate": true,
"isPreLabeled": true,
"batches": [
"text"
],
"metadata": {
"width": 1,
"height": 1,
"size": 1,
"frameStep": 1,
"frameTotal": 1,
"frameRate": 1,
"numOfPages": 1,
"numOfWords": 1,
"duration": 1,
"hasVariableFrameRate": true
},
"attachments": [
{
"type": "text",
"value": "text",
"label": {}
}
],
"contextData": {},
"labelTasks": [
{
"_id": "text",
"id": "text",
"stage": "text",
"assignee": "text"
}
],
"deleted": true,
"preprocessEnqueuedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": "text"
},
"stage": "text",
"assignee": "text",
"prevAssignee": "text",
"reviewStatus": "Accepted",
"rework": true,
"isSkipped": true,
"type": "text",
"answer": {},
"duration": 1,
"idleDuration": 1,
"blurDuration": 1,
"batches": [
"text"
],
"consensusAverage": 1,
"consensusDetailed": [
{}
],
"consensusIteration": 1,
"benchmarkAverage": 1,
"benchmarkDetailed": [
{}
],
"brushDataUrl": "text",
"medicalBrushDataUrl": "text",
"rootStageId": "text",
"deleted": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "text"
}
}
}Assigns one or more tasks to a specific user at a specific stage
API key for authentication. Format - apikey YOUR_API_KEY
User email to assign to
Project ID
Array of task IDs
Stage ID
Tasks assigned successfully
successBad request - validation error
curl -X POST "https://imeritapi.ango.ai/v2/task/assign" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user": "labeler@example.com",
"project": "YOUR_PROJECT_ID",
"tasks": ["YOUR_TASK_ID_1", "YOUR_TASK_ID_2"],
"stage": "Label"
}'
{
"status": "success",
"data": {
"task": {
"updatedCount": 1,
"assignedTasks": {
"count": 1
},
"message": "text"
}
}
}Submits annotation answer for a task
API key for authentication. Format - apikey YOUR_API_KEY
Task ID
Set to 'true' if annotation from plugin
Annotation answer object (structure depends on project categorySchema)
Annotation submitted successfully
successcurl -X POST "https://imeritapi.ango.ai/v2/annotate/YOUR_TASK_ID?isPlugin=false" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"answer": {
"objects": [
{
"schemaId": "box-tool-id",
"bounding-box": {
"x": 100,
"y": 100,
"width": 200,
"height": 150
},
"title": "Car"
}
]
}
}'
Annotation submitted successfully
{
"status": "success",
"data": {
"label": {
"_id": "text",
"project": "text",
"asset": "text",
"stage": "text",
"status": "text",
"assignee": "text",
"externalId": "text",
"batches": [
"text"
],
"priority": 1,
"answer": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"duration": 1
}
}
}Submits a review decision (accept/reject) for a task in a Review stage.
This endpoint is used to submit review decisions for tasks that are currently in a Review stage of the workflow. When a review decision is submitted, the task automatically advances to the next stage in the workflow.
Important: The task must be in a Review stage. Use /annotate/{taskId} for Label stages.
API key for authentication. Format - apikey YOUR_API_KEY
Task ID
Review decision for the task.
Accepted: Approve the task and move it to the next stageRejected: Reject the task (typically sends it back for correction)
Optional annotation modifications (structure depends on project categorySchema)
Time spent reviewing in seconds
Idle time during review in seconds
Time window was blurred/unfocused in seconds
Review submitted successfully
successBad request - task not in Review stage or invalid reviewStatus
Task or stage not found
curl -X POST "https://imeritapi.ango.ai/v2/review/YOUR_TASK_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reviewStatus": "Accepted"
}'
{
"status": "success",
"data": {
"label": {
"_id": "text",
"project": "text",
"asset": "text",
"stage": "text",
"status": "text",
"assignee": "text",
"externalId": "text",
"batches": [
"text"
],
"priority": 1,
"answer": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"duration": 1
}
}
}Last updated

