Import/Export
Bulk data import and export
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.
API key for authentication. Format - apikey YOUR_API_KEY
Project whose assets are updated
Attachments imported successfully
successBad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Resource not found
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
}
}
}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.
API key for authentication. Format - apikey YOUR_API_KEY
Labels imported successfully
successBad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Resource not found
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. "
}
}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.
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
507f1f77bcf86cd799439011Export format
jsonPossible values: Export type (task or issue)
taskPossible values: Filter by stage, as a JSON array string. Values are workflow stage IDs, or one of the fixed stages Start, Complete and Archive.
["Complete"]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.
["507f1f77bcf86cd799439011"]Send export download link via email
falsePossible values: Do not send notifications about export
falsePossible values: Include asset metadata in export
falsePossible values: Include task history (all state changes)
falsePossible values: Include only key frames for video annotations
falsePossible values: Include idle and blur duration statistics
falsePossible values: Write one file per task. Overrides format with split.
falsePossible values: JSON array string of task types to include: default, consensus or benchmark. Defaults to ["default"], which also covers tasks stored without a type.
["default","consensus"]Email the caller when the export fails
falsePossible values: Accepted for backward compatibility, ignored by the server
Filter by update date (JSON object, e.g., {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})
{"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}Filter by creation date (JSON object, e.g., {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})
{"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}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_"}}
{"_id": {"$in": ["507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"]}}Export prepared successfully
successBad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Resource not found
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=..."
}
}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.
API key for authentication. Format - apikey YOUR_API_KEY
Project ID
507f1f77bcf86cd799439011Export format
jsonPossible values: Export type (task or issue)
taskPossible values: Filter by stage, as a JSON array string. Values are workflow stage IDs, or one of the fixed stages Start, Complete and Archive.
["Complete"]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.
["507f1f77bcf86cd799439011"]Send export download link via email
falsePossible values: Do not send notifications about export
falsePossible values: Include asset metadata in export
falsePossible values: Include task history (all state changes)
falsePossible values: Include only key frames for video annotations
falsePossible values: Include idle and blur duration statistics
falsePossible values: Write one file per task. Overrides format with split.
falsePossible values: JSON array string of task types to include: default, consensus or benchmark. Defaults to ["default"], which also covers tasks stored without a type.
["default","consensus"]Email the caller when the export fails
falsePossible values: Accepted for backward compatibility, ignored by the server
Filter by update date (JSON object, e.g., {"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})
{"$gt":"2020-08-19T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}Filter by creation date (JSON object, e.g., {"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"})
{"$gt":"2020-07-27T07:37:15.000000Z","$lt":"2020-08-26T07:37:15.000000Z"}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_"}}
{"_id": {"$in": ["507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012"]}}Export prepared successfully
successBad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Resource not found
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

