For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tasks

Task and annotation management

Get Project Tasks

get
/project/{projectId}/tasks

Retrieves all tasks for a specific project with optional filtering

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
projectIdstringRequired

Project ID

Query parameters
pageinteger · min: 1Optional

Page number (1-indexed). Sending it without limit sets the page size to 10. Without it no rows are skipped.

limitinteger · min: 1Optional

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.

filterstringOptional

JSON stringified filter object (MongoDB-style query)

statusstringOptional

Filter by task status

stagestringOptional

Filter by stage ID

assigneestringOptional

Filter by assignee email

batchesstringOptional

Filter by a single batch id, or a JSON array string of batch ids (e.g. ["id1","id2"])

Responses
200

Tasks retrieved successfully

application/json
statusstringOptionalExample: success
get/project/{projectId}/tasks
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
  }
}

Requeue Tasks

post
/project/{projectId}/requeueTasks

Move tasks from one stage to another based on filter criteria

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
projectIdstringRequired

Project ID

Body
toStageIdstringRequired

Destination stage ID

Responses
200

Tasks requeued successfully

application/json
statusstringOptionalExample: success
post/project/{projectId}/requeueTasks
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 Task Priority

post
/project/{projectId}/updatePriority

Update priority for multiple tasks based on filter criteria

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
projectIdstringRequired

Project ID

Body
prioritynumber · min: -1000 · max: 1000Required

Priority value (-1000 to 1000)

optionsobjectOptional
Responses
200

Priority updated successfully

application/json
statusstringOptionalExample: success
post/project/{projectId}/updatePriority
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
    }
  }
}

Set Benchmark Tasks

post
/project/{projectId}/benchmark-tasks

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.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
projectIdstringRequired

Project ID

Body
tasksstring[] · min: 1Required

Task IDs, each a 24 character hex string

isBenchmarkbooleanRequired

True marks the tasks as benchmark, false reverts them

Responses
200

Benchmark flag applied

application/json
statusstringOptionalExample: success
post/project/{projectId}/benchmark-tasks
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"
      ]
    }
  }
}

Get Task Details

get
/task/{taskId}

Retrieves detailed information about a specific task

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
taskIdstringRequired

Task ID

Responses
200

Task retrieved successfully

application/json
statusstringOptionalExample: success
get/task/{taskId}
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
    }
  }
}

Get Task History

get
/task/{taskId}/history

Retrieves the complete history of changes for a task

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
taskIdstringRequired

Task ID

Query parameters
populateAnswerstring · enumOptional

Include the annotation answer in each history entry (default true; set "false" to strip)

Default: truePossible values:
Responses
200

Task history retrieved successfully

application/json
statusstringOptionalExample: success
get/task/{taskId}/history
GET /v2/task/{taskId}/history HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
200

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
  }
}

Get Task History Entry

get
/taskHistory/{taskHistoryId}

Retrieves a specific task history entry by ID

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
taskHistoryIdstringRequired

Task history entry ID

Query parameters
populateAnswerstring · enumOptional

Include the annotation answer in the entry (default true; set "false" to strip)

Default: truePossible values:
Responses
200

Task history entry retrieved successfully

application/json
statusstringOptionalExample: success
get/taskHistory/{taskHistoryId}
GET /v2/taskHistory/{taskHistoryId} HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
200

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"
    }
  }
}

Assign Tasks to User

post
/task/assign

Assigns one or more tasks to a specific user at a specific stage

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Body
userstringRequired

User email to assign to

projectstringRequired

Project ID

tasksstring[]Required

Array of task IDs

stagestringRequired

Stage ID

Responses
200

Tasks assigned successfully

application/json
statusstringOptionalExample: success
post/task/assign
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"
    }
  }
}

Submit Annotation

post
/annotate/{taskId}

Submits annotation answer for a task

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
taskIdstringRequired

Task ID

Query parameters
isPluginstring · enumOptional

Set to 'true' if annotation from plugin

Possible values:
Body
answerobjectRequired

Annotation answer object (structure depends on project categorySchema)

Responses
200

Annotation submitted successfully

application/json
statusstringOptionalExample: success
post/annotate/{taskId}
curl -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"
        }
      ]
    }
  }'
200

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
    }
  }
}

Submit Review Decision

post
/review/{taskId}

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.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
taskIdstringRequired

Task ID

Body
reviewStatusstring · enumRequired

Review decision for the task.

  • Accepted: Approve the task and move it to the next stage
  • Rejected: Reject the task (typically sends it back for correction)
Possible values:
answerobjectOptional

Optional annotation modifications (structure depends on project categorySchema)

durationnumberOptional

Time spent reviewing in seconds

idleDurationnumberOptional

Idle time during review in seconds

blurDurationnumberOptional

Time window was blurred/unfocused in seconds

Responses
200

Review submitted successfully

application/json
statusstringOptionalExample: success
post/review/{taskId}
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