Ango Hub Docs
Open Ango HubContact iMerit
  • Ango Hub Documentation
  • Video Guides
  • Changelog
  • FAQs & Troubleshooting
  • All Keyboard and Mouse Shortcuts
  • Core Concepts
    • Assets
    • Attachments
    • Batches
    • Benchmarks
    • Category Schema (Ontologies)
    • Frame Interpolation
    • Geofencing
    • Idle Time Detection & Time Tracking
    • Instructions
    • Issues
      • Issue Error Codes
    • Label Validation
    • Labeler Performance
    • Labeling
    • Labeling Queue
    • Multiple Classification
    • Notifications
    • Organizations
    • Projects
    • Requeuing
    • Reviewing
    • Review Queue
    • Skipping
    • Stage History
    • Tasks
    • Usage
    • User Roles
    • Workflow
      • Complete
      • Consensus
      • Hold
      • Label
      • Logic
      • Plugin
      • Review
      • Start
      • Webhook
  • Labeling
    • Managing Users in Projects
      • Profile Page
    • Managing the Project Ontology
    • Labeling Editor Interface
      • Audio Labeling Editor
      • Image Labeling Editor
      • Video Labeling Editor
      • DICOM Labeling Editor
      • Medical Labeling Editor
        • 3D Bounding Box
        • Fill Between Slices
        • Island Tools
        • Line (Tape Measure)
        • Smoothing
      • PDF Labeling Editor
      • Text (NER) Labeling Editor
      • LLM Chat Labeling Editor
      • Markdown Labeling Editor
      • 3D Multi-Sensor Fusion Labeling Editor
    • Labeling Classes
      • Tools
        • Bounding Box
        • Brush
        • Entity
        • Message
        • Nested Classifications
        • PCT
        • PDF Tool
        • Point
        • Polygon
        • Polyline
        • Rotated Bounding Box
        • Segmentation
        • Spline
        • Voxel Brush
      • Classification
        • Checkbox
        • Multiple Dropdown
        • Radio
        • Rank
        • Single Dropdown
        • Text
        • Tree Dropdown Tools (Single and Multiple Selection)
      • Relation
        • Single Relation
        • Group Relation
    • Magnetic Lasso
    • Performance & Compatibility Considerations
  • Data
    • Data in Ango Hub
      • Embedding Private Bucket Files in MD Assets
    • Importing Assets
      • Asset Builder
      • Bundled Assets
        • Importing Multiple Images as One Multi-Page Asset
        • Importing Multiple Single-Frame DICOM Files as One Multi-Page Asset
        • Importing multiple DICOM files to be annotated and displayed at once
        • Importing Multiple Single-Frame DICOM Files as a DICOM Series
        • Importing Multiple Markdown Files as One Multi-Page Asset
      • File Explorer
      • Supported Asset File Types & Codecs
      • Importing Cloud (Remote) Assets
      • Importing From Local Machine
      • Creating and Importing LLM Chat Assets
      • Importing Data in the 3D Multi-Sensor Fusion Labeling Tool
      • Bulk Importing Markdown/HTML Assets
      • Importing Attachments during Asset Import
      • Importing Annotations during Asset Import
      • contextData: Adding Extra Data to Assets
      • Importing Reference Images as Overlay
      • Importing Reference Medical Data During Asset Import
    • Importing and Exporting Annotations
      • Importing Annotations
        • Ango Import Format
        • Importing Brush Traces
        • Importing NRRD Annotations
      • Exporting Annotations
        • Ango Export Format
          • Asset
            • Task
              • Tools
              • Classifications
              • Relations
          • Stage History
    • Adding and Managing LLMs
    • Storages
      • Set up a storage integration with Azure
      • Set up a storage integration with AWS S3
      • Set up a storage integration with MinIO and S3-compatible custom storage services
      • Set up a storage integration with GCP (Google Cloud Platform)
      • Set up CORS
      • Validating Storage Integrations
    • Purging Data from Ango Hub
  • Plugins
    • Overview of Plugins in Ango Hub
      • Installing Plugins
      • Plugin Setting Presets
      • Monitoring Plugin Progress
    • First-Party Plugins
      • Ango Export Converter Plugins
      • Asset Converter Plugins
      • Ango to Mask Converter
      • Batch Assignment
      • ChatGPT
      • Column-Agnostic Markdown Generator
      • CSV Export for Classification
      • DALL-E
      • DALL-E (Model Plugin)
      • File Explorer Plugin
      • General Object Detector
      • General Object Segmenter
      • Markdown Generator
      • One-Click Segmentation
      • Open World Object Detection
      • Optical Character Recognition
      • TPT Export
      • YOLO | Instance Segmentation
      • YOLO | Pose Estimation
      • YOLO | Object Detection
      • YOLO | Image Classification
    • Plugin Developer Documentation
      • Export Plugins
      • Batch Model Plugins
      • Model Plugins
      • File Explorer Plugins
      • Markdown Generator Plugins
      • Plugin Logger
      • [WIP] Deploying your Plugin
      • Plugin 'Host' Information
  • SDK
    • SDK Documentation
      • Project Level SDK Functions
        • add_members_to_project
        • assign_batches
        • assign_task
        • create_attachment
        • create_batch
        • create_issue
        • create_label_set
        • create_project
        • delete_issue
        • export
        • exportV3
        • get_assets
        • get_batches
        • get_issues
        • get_metrics
        • get_project
        • get_project_performance
        • get_task
        • get_tasks
        • get_task_history
        • import_labels
        • list_projects
        • requeue_tasks
        • rerun_webhook
        • update_workflow_stages
        • upload_files
        • upload_files_cloud
        • upload_files_with_asset_builder
        • upload_chat_assets
      • Organization Level SDK Functions
        • create_storage
        • delete_organization_invites
        • delete_organization_members
        • delete_storage
        • get_organization_invites
        • get_organization_members
        • get_storages
        • invite_members_to_org
        • update_organization_members_role
    • SDK - Useful Snippets
    • SDK Changelog
  • API
    • API Documentation
  • How-To
    • Add Members
      • Add multiple users to a project
    • Annotate
      • Annotate 3D Point Cloud Files on Ango Hub
      • Perform targeted OCR on images
    • Export Data
      • Automatically send Ango Hub Webhook contents to Google Sheets, Email, Slack, and more with Zapier
      • Download a JSON of your project ontology
      • Download DICOM Segmentation Masks
      • Download your annotations in the COCO, KITTI, or YOLO format
      • Download your Segmentation Masks
      • Get your export as separate JSON files for each asset
    • Manage a Project
      • Get your API Key
      • Get your Organization ID
      • Mute your notifications
      • Open an asset provided the Asset ID
      • Pre-label assets
      • Share a filtered view of the Tasks table with others
      • Transfer project ontologies between projects
      • Transfer project workflows between projects
    • Perform Model Evaluation on Ango Hub
  • Troubleshooting
    • I get a "0 Tasks Labeled" alert when trying to pre-label tasks
    • I get a 'The data couldn't be loaded properly' error when opening certain assets
    • I get a "Unknown Classification" warning when opening a task
  • Feature Availability Status for projects of the 3D Multi-Sensor Fusion type
  • Comparison between QuickServe and Ango Hub
  • Changes from Ango Hub Legacy
  • Video V2 Breaking Changes and Transition
  • Data Access, Storage, and Security
  • Two-Factor Authentication
  • Single Sign-On (SSO) Support
  • Customer Support
  • Ango Hub Status Page
Powered by GitBook
On this page
  • List of API Methods
  • Annotations
  • Get export from project
  • Upload annotations for a single task
  • Upload pre-labels in bulk
  • Asset Management
  • Get Project Assets
  • Upload Assets from Storage
  • Attachments
  • Create Attachment
  • Batches
  • Get batches of project
  • Create batch in project
  • Assign assets to batch
  • Issues
  • Create Issue
  • Organization Management
  • Get Organization Storages
  • Project Management
  • List All Projects
  • Get Project Information
  • Get Project Tasks
  • Get a metric from a project
  • Create new project
  • Create Label Set
  • Requeue Tasks
  • Tasks
  • Get Task
  • Get a task's history
  • Assign Task to User
  1. API

API Documentation

List of API Methods

Annotations

Get export from project

GET https://imeritapi.ango.ai/v2/exportV3

Obtain export from project.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Upload annotations for a single task

GET https://imeritapi.ango.ai/v2/annotate/{task_id}

Update the annotation content of a task regardless of the task's current stage.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Sample request

curl --location 'https://testapi.ango.ai/v2/annotate/664c8fda7368030015077b74' --header 'apikey: 1234567890' --header 'Content-Type: application/json' --data '{"answer":{"objects":[{"title":"Vehicle","bounding-box":{"width":120.005,"height":135.345,"x":50.3,"y":30.4}}],"classifications":[],"relations":[]},"duration":0}'

Upload pre-labels in bulk

POST https://imeritapi.ango.ai/v2/import/labels

Obtain export from project.

Body:

{ "project": "<PROJECT_ID>", "jsonContent": "string" }

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Request Body

Name
Type
Description

project

String

Project ID where the assets to pre-label are located.

jsonContent

String

Asset Management

Get Project Assets

GET https://imeritapi.ango.ai/v2/project/{project_id}/assets

Get list of assets in a project.

Path Parameters

Name
Type
Description

project_id

String

ID of the project.

Query Parameters

Name
Type
Description

page

String

Assets are paginated. Page number to obtain. Defaults to the first page.

limit

String

Assets per page. Min/default: 10, max: 1000.

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

{
    "status": "success",
    "data": {
        "assets": "Successfully created."
    }
}

Upload Assets from Storage

POST https://imeritapi.ango.ai/v2/project/{project_id}/cloud

Uploads files from cloud storage to a specified Ango Hub project as assets.

Example request:

curl --location --request POST 'https://imeritapi.ango.ai/v2/project/61602b346ee9eb45e8273fbb/cloud' --header 'Content-Type: application/json' --header 'apikey: YOUR-API-KEY-HERE' --data-raw '{ "assets": [ { "data": "https://bucket-name.s3.us-east-2.amazonaws.com/1605167545820-0b395d1ef7df81b7558f87eb47a59dda4dbe19bd.jpg", "externalId": "111" }, { "data": "https://bucket-name.s3.us-east-2.amazonaws.com/1605167545822-0b0b60d298c4afebed824d8ee2f793676c7835bf.jpg", "externalId": "113" } ] }'

Path Parameters

Name
Type
Description

project_id

String

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

Request Body

Name
Type
Description

assets*

Array

Array of objects each containing two key-value pairs: "data":"URL"and "externalId":"ID". See example above.

{
    "status": "success",
    "data": {
        "assets": "Successfully created."
    }
}

Attachments

Create Attachment

POST https://imeritapi.ango.ai/v2/attachments

Adds an attachment to an existing labeling task.

Example request:

curl --location --request POST 'https://imeritapi.ango.ai/v2/attachments' --header 'apikey: YOUR-API-KEY-HERE' --data-raw '{ "project": "61d444045e299635ed689056", "attachments": [ { "data": "https://angohub-public-assets.s3.eu-central-1.amazonaws.com/uploaded-data-0a0988b2-d6ca-420e-97e6-577b96417989.png", "externalId": "uploaded-data-65dfb652-d7c8-4fa5-b6d5-de6bfe2a4365.png", "attachments": [ { "type": "IMAGE", "value": "https://sample-image.jpg" }, { "type": "VIDEO", "value": "http://sample-video.mp4" }, { "type": "TEXT", "value": "Some sample text" } ] } ] }'

Headers

Name
Type
Description

apikey*

String

Your API key.

Request Body

Name
Type
Description

project*

String

ID of the project where the attachment is to be created. Found at the end of the project URL.

attachments*

Array

Array of objects describing task/attachment pairs. See example.

data*

String

URL to the asset where the attachment is to be added.

externalId*

String

External ID of the asset. Found in the project under the Assets tab.

type*

String

Attachment data type. Available types are IMAGE, VIDEO, and TEXT.

Supported IMAGE file types are .png and .jpg. The supported video type is .mp4, and the supported text type is .txt.

value*

String

In case the type is TEXT, the content of the attachment in plain text. In case the type is IMAGE or VIDEO, a URL linking to the image or video.

Batches

Get batches of project

GET https://imeritapi.ango.ai/v2/batches/{project_id}

Obtain list of batches existing within a project.

Path Parameters

Name
Type
Description

project_id

String

ID of the project.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Create batch in project

POST https://imeritapi.ango.ai/v2/batches/{project_id}

Create new batch in project.

Body:

{ "batches": "string" }

Path Parameters

Name
Type
Description

project_id*

String

ID of the project where the batch is to be created.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Request Body

Name
Type
Description

batches*

String

Name of the batch to create.

Assign assets to batch

POST https://imeritapi.ango.ai/v2/assignBatches

Create new batch in project.

Body:

{ "assets": ["<ASSET_ID1>", "<ASSET_ID2>"] "batches": ["<BATCH_ID_1>", "<BATCH_ID_2>"] }

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Request Body

Name
Type
Description

batches*

String or [String]

Name(s) of the batch(es) to assign the asset(s) to.

assets

String or [String]

ID(s) of the asset(s) to assign to the batch(es).

Issues

Create Issue

POST https://imeritapi.ango.ai/v2/issues

Creates an issue. If a position parameter is sent, the issue will be created at the position requested (on single images, multi-page TIFFs, video, and text only.)

Example request:

curl --location --request POST 'https://imeritapi.ango.ai/v2/issues' --header 'apikey: YOUR-API-KEY-HERE' --data-raw '{ "content":"Issue Text Here", "labelTask": "6143498454e17400149964d1", "position": "[50,120]" }'

Headers

Name
Type
Description

apikey*

String

Your API key.

Request Body

Name
Type
Description

content*

String

Issue text

labelTask*

String

ID of the label task where the issue is to be created.

position

String

For images: stringified array with the X and Y position where the issue is to be created on the asset. Example: "[50, 120]"

For text: stringified index of the character in the text where the issue will be created. Example: "54".

page

Int

For multi-page TIFFs and videos, the zero-indexed page/frame number where the issue is to be displayed.

Organization Management

Get Organization Storages

GET https://imeritapi.ango.ai/v2/storages

Obtain list of connected storages in the organization.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Project Management

List All Projects

GET https://imeritapi.ango.ai/v2/listProjects

Returns a list of all projects visible to the user.

Example request:

curl --location --request GET 'https://imeritapi.ango.ai/v2/listProjects' --header 'Content-Type: application/json' --header 'apikey: YOUR-API-KEY-HERE'

Query Parameters

Name
Type
Description

page

String

Projects are paginated. This parameter is the page number. Will get the first page by default.

limit

String

Number of projects per page (default 10, max 1000).

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

{
    "status": "success",
    "data": {
        "projects": [
            {
                "_id": "123123123123123123123123",
                "name": "Project Name",
                "description": "Project Description",
                "organization": "234234234234234234234234",
                "createdAt": "2021-10-14T07:44:46.373Z"
            }
        ],
        "total": 1
    }
}
{
    "status": "fail",
    "message": "Invalid API KEY"
}

Get Project Information

GET https://imeritapi.ango.ai/v2/project/{project_id}

Returns information about a project, including labeling tools, consensus count, assigned users, review configuration, and name and description.

Example request:

curl --location --request GET 'https://imeritapi.ango.ai/v2/project/61602b346ee9eb45e8273fbb' --header 'Content-Type: application/json' --header 'apikey: YOUR-API-KEY-HERE'

Path Parameters

Name
Type
Description

project_id

String

ID of the project to get. (e.g. 652901255342990015e24922)

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

{
    "status": "success",
    "data": {
        "project": {
            "categorySchema": {
                "tools": [
                    {
                        "title": "Vehicle",
                        "tool": "bounding-box",
                        "required": false,
                        "schemaId": "4b8ac18a570747f87b27025",
                        "columnField": false,
                        "classifications": [
                            {
                                "title": "Type",
                                "tool": "radio",
                                "required": false,
                                "schemaId": "ae40cb11c104045c1a31698",
                                "columnField": false,
                                "options": [
                                    {
                                        "value": "Car",
                                        "schemaId": "27504d2d08f05b9944aa713"
                                    },
                                    {
                                        "value": "Truck",
                                        "schemaId": "c734a046cbee0646886a067"
                                    },
                                    {
                                        "value": "Bus",
                                        "schemaId": "41abb6003990d2aa1ce3605"
                                    },
                                    {
                                        "value": "Other",
                                        "schemaId": "32b3611a68df286fe6eb281"
                                    }
                                ]
                            }
                        ],
                        "color": "#9c27b0",
                        "shortcutKey": "h"
                    }
                ],
                "classifications": [],
                "relations": []
            },
            "consensusCount": 1,
            "deleted": false,
            "reviewConf": {
                "filters": []
            },
            "_id": "6167dfee2a810d000e9d313f",
            "name": "Project Name",
            "description": "Project Description",
            "user": {
                "organizationRole": "admin",
                "deleted": false,
                "_id": "614348d554e17400149964b1",
                "name": "Name Surname",
                "email": "name_surname@example.com",
                "organization": "61435781cdb61b0013d05a03",
                "lastActiveAt": "2021-10-14T09:55:54.814Z",
                "apiKey": "API-KEY-HERE"
            },
            "organization": "61435781cdb61b0013d05a03",
            "createdAt": "2021-10-14T07:44:46.373Z",
            "assignedTo": [],
            "__v": 0,
            "role": "Manager"
        }
    }
}
{
    "status": "fail",
    "message": "Invalid project: 6167dfee2a810d000e9d313."
}
{
    "status": "fail",
    "message": "Invalid API KEY"
}

Get Project Tasks

GET https://imeritapi.ango.ai/v2/project/{project_id}/tasks

Returns all tasks in a project, with all of their information, including labeling tools, status, etc.

Example request:

curl --location --request GET 'https://imeritapi.ango.ai/v2/project/615ffd3c455fc7000e6c45eb/tasks' --header 'Content-Type: application/json' --header 'apikey: YOUR-API-KEY-HERE'

Path Parameters

Name
Type
Description

project_id*

String

ID of the project to get the tasks of.

Query Parameters

Name
Type
Description

page

String

Tasks are paginated. Page number of the page of the tasks to obtain. Will get first page by default.

limit

String

Number of tasks per page. Default/minimum: 10, max: 1000.

status[eq]

String

Filter by status. {'Completed', 'TODO'}

batches

String

Filter by batch. Batch ID.

stage

String

Filter by stage. Stage ID.

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

{
    "status": "success",
    "data": {
        "tasks": [
            {
                "sample": {
                    "isSample": false,
                    "updatedAt": "2021-10-14T08:20:31.259Z"
                },
                "review": {
                    "status": "Todo"
                },
                "answer": {
                    "tools": [
                        {
                            "schemaId": "258f3a07abdb690af46b879",
                            "classifications": [
                                {
                                    "schemaId": "a20942feeaa72bd14d25150",
                                    "answer": "b8135ff7ae3c7ff38347978"
                                },
                                {
                                    "schemaId": "195857feb959465d20c8215",
                                    "answer": "fb19996138864f54eb61839"
                                },
                                {
                                    "schemaId": "c6403fdb451daad92247100",
                                    "answer": "Ocre"
                                }
                            ],
                            "lock": false,
                            "objectId": "014273c35ff83e2e19c9392",
                            "ner": {
                                "start": 10,
                                "end": 15
                            },
                            "metadata": {
                                "createdAt": 1634199730392,
                                "createdBy": "import"
                            }
                        }
                    ],
                    "classifications": [],
                    "relations": []
                },
                "status": "TODO",
                "isBenchmark": false,
                "deleted": false,
                "issues": [],
                "openIssuesCount": 0,
                "isPreLabeled": true,
                "isFlag": false,
                "isStar": false,
                "_id": "6167e84f2a810d000e9d3186",
                "project": "6167dfee2a810d000e9d313f",
                "asset": {
                    "_id": "6167e84f2a810d000e9d3185",
                    "externalId": "text_file.txt",
                    "data": "https://angohub-public-assets.s3.eu-central-1.amazonaws.com/uploaded-data-d187239d-9fc0-4565-983d-50c7b42b258b.txt"
                },
                "organization": "61435781cdb61b0013d05a03",
                "createdAt": "2021-10-14T08:20:31.259Z"
            },
            {
                "sample": {
                    "isSample": false,
                    "updatedAt": "2021-10-14T07:47:23.457Z"
                },
                "review": {
                    "status": "Todo"
                },
                "answer": {
                    "tools": [
                        {
                            "schemaId": "4b8ac18a570747f87b27025",
                            "classifications": [
                                {
                                    "schemaId": "ae40cb11c104045c1a31698",
                                    "answer": "27504d2d08f05b9944aa713"
                                },
                                {
                                    "schemaId": "2ea7c2a0712af78cd9bb827",
                                    "answer": "ca9e9c4c13caa3f11a3d292"
                                },
                                {
                                    "schemaId": "364dc1e2a7ed4d9f57ce731",
                                    "answer": "Ocre"
                                }
                            ],
                            "lock": false,
                            "objectId": "7719679ed20f149af886359",
                            "bounding-box": {
                                "x": 50.3,
                                "y": 30.4,
                                "width": 120.005,
                                "height": 135.345
                            },
                            "metadata": {
                                "createdAt": 1634199268359,
                                "createdBy": "import"
                            }
                        }
                    ],
                    "classifications": [],
                    "relations": []
                },
                "status": "TODO",
                "isBenchmark": false,
                "deleted": false,
                "issues": [],
                "openIssuesCount": 0,
                "isPreLabeled": true,
                "isFlag": false,
                "isStar": false,
                "_id": "6167e08b2a810d000e9d314d",
                "project": "6167dfee2a810d000e9d313f",
                "asset": {
                    "_id": "6167e08b2a810d000e9d314c",
                    "externalId": "test.jpg",
                    "data": "https://angohub-public-assets.s3.amazonaws.com/uploaded-data-15c12f8e-4b46-4d55-8fd4-776455448810.jpg"
                },
                "organization": "61435781cdb61b0013d05a03",
                "createdAt": "2021-10-14T07:47:23.457Z"
            }
        ],
        "total": 2
    }
}
{
    "status": "fail",
    "message": "Invalid project: 6167dfee2a810d000e9d313."
}
{
    "status": "fail",
    "message": "Invalid API KEY"
}

Get a metric from a project

GET https://imeritapi.ango.ai/v2/{project_id}/overview/{metric}

Get a specific metric from a project.

The metric can be one of: "LabelStageGroups", "TimePerTask", "AnnotationStatus", "AnswerDistribution", "ConsensusRanges", "AssetSize".

Path Parameters

Name
Type
Description

project_id*

String

ID of the project.

metric*

String

Metric to obtain.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Create new project

POST https://imeritapi.ango.ai/v2/project

Create new project in organization.

Body:

{ "name": "string" "description": "string" }

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Request Body

Name
Type
Description

name*

String

Name of the new project.

description

String

Description of the new project.

Create Label Set

POST https://imeritapi.ango.ai/v2/project/{project_id}

Example value for the body:

{
  "categorySchema": {
    "tools": [
      {
        "title": "Vehicle",
        "tool": "bounding-box",
        "schemaId": "e94536...",
        ...
      }
],
    "classifications": [classifications],
    "relations": [relations]
  }
}

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey

String

Your API key.

Request Body

Name
Type
Description

categorySchema*

Dict

Category schema to pass. See example above. Obtain it from the UI, in the project settings -> Category Schema section.

Requeue Tasks

POST https://imeritapi.ango.ai/v2/project/<PROJECT_ID>/requeueTasks

Requeue tasks from one stage to another.

Example value for the body:

{
    "toStageId": "Label2", // toStageId is mandatory
    "filters": { // filters are optional and inclusive
        "taskIds": [],
        "externalIds": ["cute-cat.jpg"],
        "assetIds": [],
        "fromStageIds": []
    },
    "options": { // options are optional with following defaults
        "removeAnnotations": false,
        "removeAssignee": false,
        "removeStageHistory": false
    }
}

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey

String

Your API key.

Request Body

Name
Type
Description

toStageId*

String

The id of the stage to be requeued.

filters

Dict

Filter tasks

options

Dict

Options to be applied during requeue

Tasks

Get Task

GET https://imeritapi.ango.ai/v2/task/{task_id}

Returns all information about a task given the task's ID.

Example request:

curl --location --request GET 'https://imeritapi.ango.ai/v2/task/616433306b763c8c0e922b14' --header 'Content-Type: application/json' --header 'apikey: YOUR-API-KEY-HERE'

Path Parameters

Name
Type
Description

task_id

String

ID of the task to get information of.

Headers

Name
Type
Description

Content-Type*

String

Response content type. Must be application/json

apikey*

String

Your API key.

{
    "status": "success",
    "data": {
        "task": {
            "sample": {
                "isSample": false,
                "updatedAt": "2021-10-14T07:47:23.457Z"
            },
            "review": {
                "status": "Todo"
            },
            "answer": {
                "tools": [
                    {
                        "schemaId": "4b8ac18a570747f87b27025",
                        "classifications": [
                            {
                                "schemaId": "ae40cb11c104045c1a31698",
                                "answer": "27504d2d08f05b9944aa713"
                            },
                            {
                                "schemaId": "2ea7c2a0712af78cd9bb827",
                                "answer": "ca9e9c4c13caa3f11a3d292"
                            },
                            {
                                "schemaId": "364dc1e2a7ed4d9f57ce731",
                                "answer": "Ocre"
                            }
                        ],
                        "lock": false,
                        "objectId": "7719679ed20f149af886359",
                        "bounding-box": {
                            "x": 50.3,
                            "y": 30.4,
                            "width": 120.005,
                            "height": 135.345
                        },
                        "metadata": {
                            "createdAt": 1634199268359,
                            "createdBy": "import"
                        }
                    },
                    {
                        "schemaId": "4b8ac18a570747f87b27025",
                        "bounding-box": {
                            "x": 179.8469387755102,
                            "y": 311.79138321995464,
                            "height": 123.58276643990929,
                            "width": 112.24489795918367
                        },
                        "objectId": "4e42a539188471304757866",
                        "classifications": [],
                        "metadata": {
                            "createdAt": 1634207308867,
                            "createdBy": "614348d554e17400149964b1"
                        }
                    }
                ],
                "classifications": [],
                "relations": []
            },
            "status": "Completed",
            "isBenchmark": false,
            "deleted": false,
            "issues": [],
            "openIssuesCount": 0,
            "isPreLabeled": true,
            "isFlag": false,
            "isStar": false,
            "_id": "6167e08b2a810d000e9d314d",
            "project": {
                "_id": "6167dfee2a810d000e9d313f"
            },
            "asset": {
                "_id": "6167e08b2a810d000e9d314c",
                "externalId": "test.jpg",
                "data": "https://angohub-public-assets.s3.amazonaws.com/uploaded-data-15c12f8e-4b46-4d55-8fd4-776455448810.jpg"
            },
            "organization": "61435781cdb61b0013d05a03",
            "createdAt": "2021-10-14T07:47:23.457Z",
            "__v": 0,
            "completedAt": "2021-10-14T10:28:30.025Z",
            "completedBy": "614348d554e17400149964b1",
            "duration": 4141,
            "updatedAt": "2021-10-14T10:28:30.025Z",
            "updatedBy": "614348d554e17400149964b1",
            "assignee": "614348d554e17400149964b1"
        }
    }
}
{
    // Response
}
{
    "status": "fail",
    "message": "Invalid API KEY"
}

Get a task's history

GET https://imeritapi.ango.ai/v2/taskHistory/{id}

Gets the history of a task.

Path Parameters

Name
Type
Description

id*

String

ID of the task.

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Assign Task to User

POST https://imeritapi.ango.ai/v2/task/assign

Assign a task to a specific user.

Sample body:

{ "project": "<project_ID>", "tasks": [ "<TASK_ID>", "<TASK2_ID>" ], "stage": "<STAGE_ID>", "user": "<USER_EMAIL>" }

Headers

Name
Type
Description

apikey*

String

Your API key.

Content-Type*

String

Response content type. Must be application/json

Request Body

Name
Type
Description

project*

ID of the project where the task to assign is located.

tasks*

[ String ]

List of task IDs of the tasks to assign.

stage*

String

Stage ID where the tasks to assign are located.

user

String

E-mail of the user to which the tasks will be assigned.

{
    "status": "success",
    "data": {
        "assets": "Successfully created."
    }
}
PreviousSDK ChangelogNextAdd Members

Last updated 4 days ago

Then include the annotation content for the task in the raw data section of the request as per the sample request below. .

For the contents of jsonContent, please refer to the documentation of the . Please note that the assets you are trying to pre-annotate must be located in the project's Start stage. .

Pre-labels. Please refer to the documentation of the .

Sets the project ontology. For the format of the categorySchema object to pass, please create the ontology from the UI, then follow to copy it to your clipboard.

Read more about Ango's import format here
these instructions
Read more about the Start stage here
related SDK function
related SDK function