For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Import/Export

Bulk data import and export

Import Attachments

post
/attachments

Sets the attachments of existing assets. Each item matches assets of the project by externalId, or by data when externalId is absent, and every matching asset has its whole attachments array replaced with the one in that item. A matcher may hit more than one asset. At most 10000 items per request and 1000 attachments per item.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Body
projectstringRequired

Project whose assets are updated

Responses
200

Attachments imported successfully

application/json
statusstringOptionalExample: success
post/attachments
curl -X POST "https://imeritapi.ango.ai/v2/attachments" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "YOUR_PROJECT_ID",
    "attachments": [
      {
        "externalId": "image-001",
        "attachments": [
          { "type": "pdf", "value": "https://example.com/attachment1.pdf" }
        ]
      },
      {
        "data": "https://my-bucket.s3.amazonaws.com/images/img002.jpg",
        "attachments": [
          { "type": "text", "value": "Shot at night, heavy rain" }
        ]
      }
    ]
  }'
{
  "status": "success",
  "data": {
    "project": {
      "importCount": 1
    }
  }
}

Import Labels

post
/import/labels

Writes pre-labels onto existing tasks. Items are matched against the task externalId. When an item carries no externalId, data is used, matching tasks whose externalId is that URL or the hash derived from it for assets uploaded without an explicit externalId. Only tasks still in the Start stage of the project are updated, and an item that produces an empty answer is not written; both cases are skipped silently and reflected in the returned counts. Sending no project in the body returns 200 with an empty data object.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Body
projectstringRequired
Responses
200

Labels imported successfully

application/json
statusstringOptionalExample: success
post/import/labels
curl -X POST "https://imeritapi.ango.ai/v2/import/labels" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "YOUR_PROJECT_ID",
    "jsonContent": [
      {
        "externalId": "image-001",
        "tools": [
          {
            "schemaId": "box-tool-id",
            "objectId": "obj-1",
            "bounding-box": {
              "x": 100,
              "y": 100,
              "width": 200,
              "height": 150
            },
            "title": "Car"
          }
        ],
        "classifications": [],
        "relations": []
      }
    ]
  }'
{
  "status": "success",
  "data": {
    "project": "50 / 50 tasks are labeled. "
  }
}

Export Tasks

get
/export

Builds the export and returns a link to it. The call is synchronous: it blocks until the archive is built and uploaded, so a large project can take minutes. The same operation is also served at /exportV3. Every run is recorded in the project's export history, and the caller is notified in the app when it finishes unless doNotNotify is true. Any query parameter not listed below is parsed as JSON and applied as a filter on the exported tasks.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Query parameters
projectstringRequired

Project ID

Example: 507f1f77bcf86cd799439011
formatstring · enumOptional

Export format

Default: jsonPossible values:
typestring · enumOptional

Export type (task or issue)

Default: taskPossible values:
stagestringOptional

Filter by stage, as a JSON array string. Values are workflow stage IDs, or one of the fixed stages Start, Complete and Archive.

Example: ["Complete"]
batchesstringOptional

Filter by batch, as a JSON array string of batch IDs taken from the project's batches array. A task matches when it carries any of them.

Example: ["507f1f77bcf86cd799439011"]
sendEmailstring · enumOptional

Send export download link via email

Default: falsePossible values:
doNotNotifystring · enumOptional

Do not send notifications about export

Default: falsePossible values:
includeMetadatastring · enumOptional

Include asset metadata in export

Default: falsePossible values:
includeHistorystring · enumOptional

Include task history (all state changes)

Default: falsePossible values:
includeOnlyKeyFramesstring · enumOptional

Include only key frames for video annotations

Default: falsePossible values:
includeIdleBlurDurationsstring · enumOptional

Include idle and blur duration statistics

Default: falsePossible values:
splitstring · enumOptional

Write one file per task. Overrides format with split.

Default: falsePossible values:
taskTypesstringOptional

JSON array string of task types to include: default, consensus or benchmark. Defaults to ["default"], which also covers tasks stored without a type.

Example: ["default","consensus"]
sendEmailOnFailurestring · enumOptional

Email the caller when the export fails

Default: falsePossible values:
includeSegmentationPointsstring · enumOptional

Accepted for backward compatibility, ignored by the server

Possible values:
updatedAtstringOptional

Filter by update date (JSON object, e.g., {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})

Example: {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}
createdAtstringOptional

Filter by creation date (JSON object, e.g., {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})

Example: {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}
filtersstringOptional

MongoDB-style filter object for advanced task filtering (JSON string). Supports any MongoDB query operators on task fields. Common use cases:

  • Filter by task IDs: {"_id": {"$in": ["taskId1", "taskId2"]}}
  • Filter by assignee: {"assignee": "user@example.com"}
  • Filter by external ID: {"externalId": {"$regex": "^prefix_"}}
Example: {"_id": {"$in": ["507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"]}}
Responses
200

Export prepared successfully

application/json
statusstringOptionalExample: success
get/export
curl -X GET "https://imeritapi.ango.ai/v2/export?project=YOUR_PROJECT_ID&format=json" \
  -H "apikey: YOUR_API_KEY"
{
  "status": "success",
  "data": {
    "exportPath": "https://bucket.s3.amazonaws.com/PROJECT_ID/exports/PROJECT_ID-task-export-2026-09-25-10_00_00_GMT-1a2b3c4d.zip?X-Amz-Signature=..."
  }
}

Export Tasks (V3)

get
/exportV3

Alias of /export. The router mounts both paths on the same handler, so the parameters, the response and the required role are identical. It exists for older clients; new integrations should call /export.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Query parameters
projectstringRequired

Project ID

Example: 507f1f77bcf86cd799439011
formatstring · enumOptional

Export format

Default: jsonPossible values:
typestring · enumOptional

Export type (task or issue)

Default: taskPossible values:
stagestringOptional

Filter by stage, as a JSON array string. Values are workflow stage IDs, or one of the fixed stages Start, Complete and Archive.

Example: ["Complete"]
batchesstringOptional

Filter by batch, as a JSON array string of batch IDs taken from the project's batches array. A task matches when it carries any of them.

Example: ["507f1f77bcf86cd799439011"]
sendEmailstring · enumOptional

Send export download link via email

Default: falsePossible values:
doNotNotifystring · enumOptional

Do not send notifications about export

Default: falsePossible values:
includeMetadatastring · enumOptional

Include asset metadata in export

Default: falsePossible values:
includeHistorystring · enumOptional

Include task history (all state changes)

Default: falsePossible values:
includeOnlyKeyFramesstring · enumOptional

Include only key frames for video annotations

Default: falsePossible values:
includeIdleBlurDurationsstring · enumOptional

Include idle and blur duration statistics

Default: falsePossible values:
splitstring · enumOptional

Write one file per task. Overrides format with split.

Default: falsePossible values:
taskTypesstringOptional

JSON array string of task types to include: default, consensus or benchmark. Defaults to ["default"], which also covers tasks stored without a type.

Example: ["default","consensus"]
sendEmailOnFailurestring · enumOptional

Email the caller when the export fails

Default: falsePossible values:
includeSegmentationPointsstring · enumOptional

Accepted for backward compatibility, ignored by the server

Possible values:
updatedAtstringOptional

Filter by update date (JSON object, e.g., {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})

Example: {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}
createdAtstringOptional

Filter by creation date (JSON object, e.g., {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})

Example: {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}
filtersstringOptional

MongoDB-style filter object for advanced task filtering (JSON string). Supports any MongoDB query operators on task fields. Common use cases:

  • Filter by task IDs: {"_id": {"$in": ["taskId1", "taskId2"]}}
  • Filter by assignee: {"assignee": "user@example.com"}
  • Filter by external ID: {"externalId": {"$regex": "^prefix_"}}
Example: {"_id": {"$in": ["507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"]}}
Responses
200

Export prepared successfully

application/json
statusstringOptionalExample: success
get/exportV3
GET /v2/exportV3?project=text HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "exportPath": "https://bucket.s3.amazonaws.com/PROJECT_ID/exports/PROJECT_ID-task-export-2026-09-25-10_00_00_GMT-1a2b3c4d.zip?X-Amz-Signature=..."
  }
}

Last updated