SDK Documentation
How to install and use Ango Hub's Python SDK


We provide a Python SDK to interface programmatically with Ango Hub.
SDK Installation
How to Install the Ango SDK
To start using the Ango SDK, you will need to install the latest version of the imerit-ango python package, available on PyPI.
To download and add the package to your current Python environment, use the following command:
How to upgrade the Ango SDK
To upgrade the imerit-ango package to its latest version in your current Python environment, use the following command:
Obtaining your API Key
In order to interact with Ango Hub programmatically, you'll need an API key which can be directly obtained from the account page.
API keys in Ango Hub are generated per user within each organization. When authenticating requests, ensure you are using the API key that associates with the correct organization, as keys are not valid across different organizations.
To retrieve your API Key from the UI:
Navigate to your Account page in Ango Hub.
Go to the API tab.
Create a new API key or copy your existing key.
For more information, please visit the How to get your API key page.
Obtaining Organization, Project, Asset, and Task IDs
Ango Hub assigns unique identifiers to organizations, projects, assets, and tasks. These IDs are commonly required when interacting with the SDK.
Organization IDs
To retrieve your Organization ID from the UI:
Navigate to the Account page.
Locate the Organization ID field under the Profile tab.
Click the Copy icon next to the field to copy the ID to your clipboard.
Project IDs
To retrieve a Project ID from the UI:
Navigate to Projects page.
Search for your project and click to open it.
On the project page, click the copy icon next to the project title to copy the ID to your clipboard.
Alternatively, you can obtain the Project ID from the URL. Project URLs follow this format:
https://imerit.ango.ai/projects/<project_id>
Simply copy the <project_id> portion from the URL.
Task and Asset IDs
To retrieve a Task or Asset ID from the UI:
Navigate to the Tasks or Assets tab within your project.
Click on the task or asset you want to inspect.
Open the Task Info section from the rightmost panel.
Find the Task or Asset ID and use the Copy icon to easily copy it to your clipboard.
Host and Base URL
This section explains how to configure the API and SDK when working with different Ango Hub instances.
EU Instance (Default): Use the default host configuration when your workspace is hosted in the EU region.
Other Instances: If your workspace is hosted in a different region (e.g., US), specify the appropriate host parameter when initializing the SDK and update the base URL accordingly in your API requests.
Using the correct host and base URL ensures that your requests are routed to the appropriate regional environment.
iMerit (Default)
https://imerit.ango.ai
https://imeritapi.ango.ai
EU Instance (Default)
https://imerit.ango.ai
https://eu-api.ango.ai
US Instance
https://us.ango.ai
https://us-api.ango.ai
India Instance
https://in.ango.ai
https://in-api.ango.ai
Test Instance
https://test.ango.ai
https://testapi.ango.ai
SDK & API usage example in EU instance:
SDK & API usage example in other instances:
Environmental Variables
Snippets on this page make the assumption that you have your API key and other variables set as environmental variables.
To set environmental variables, install the python-dotenv package from pip by running
in your Python environment.
Then, create a file called .env in your environment's root folder. The contents of this .env file will look like this:
In your Python scripts, import the package and load the environmental variables by running load_dotenv() before using the variables in your script.
You will then be able to access your environmental variables by using os.getenv("VAR_NAME"), like so:
SDK Functions
Project
create_projectclone_projectget_projectdelete_projectlist_projectscreate_label_setrequeue_tasksrerun_webhookreview_taskset_tasks_as_benchmarkupdate_benchmark_settingsupdate_label_validationupdate_workflow_stagesupdate_tasks_priorityupload_instructionsStorage
create_storageget_storagesdelete_storageUpload Data
upload_filesupload_files_cloudupload_files_with_asset_buildercreate_asset_builder_templateget_asset_builder_templatesupload_chat_assetsimport_labelscreate_attachmentdelete_assetsBatch
assign_batchescreate_batchget_batchesMembers
invite_members_to_orgadd_members_to_projectget_organization_invitesget_organization_membersupdate_organization_members_roledelete_organization_invitesdelete_organization_membersassign_tasksend_notificationIssue
create_issueget_issuesdelete_issueExport Data
exportget_assetsget_taskget_tasksget_task_historyget_metricsget_project_performanceLLM Integrations
create_llmget_llmsdelete_llmUtility Functions
list_storage_filesLast updated