Prerequisites
Get your API key
Obtain your API key from the Avala dashboard. Set it as an environment variable:
Initialize the client
Create a client instance to interact with the Avala API:List datasets
Retrieve and browse your datasets:Filter datasets
You can filter datasets by data type, status, or visibility:Get a specific dataset
Retrieve a single dataset by its unique identifier:Work with projects
List all your annotation projects:List tasks
Browse tasks within a project:Filter tasks by status
Find tasks in a specific state:Create an export
Export annotated data from your project:Check export status
Poll the export until it’s ready:Pagination
All.list() methods return a CursorPage that supports iteration:
Error handling
Handle API errors gracefully:Using async client
For async/await support, useAsyncClient:
Complete example
Here’s a complete script that ties everything together:Next steps
Core Concepts
Learn about the client, pagination, and error handling
Guides
Explore in-depth guides for datasets, projects, and automation
API Reference
Browse the complete API reference
CLI Tool
Use the command-line interface