Skip to main content
Practical code examples for working with the Avala platform using the official SDKs and REST API. Covers basic operations, advanced patterns like retry logic and async batch processing, and production workflows.

Setup


Dataset Management

List Datasets

Retrieve all datasets accessible to your account.

Get Dataset Details

Fetch details for a specific dataset by UID.

Project Workflows

List Projects

Retrieve projects accessible to your account.

Get Project Metrics

Check the progress and quality metrics for a project.

Export Pipeline

Create Export, Poll for Completion, and Download

A complete workflow for exporting annotation data from a project.

Annotation Retrieval

List Tasks

Retrieve tasks for a project, optionally filtering by status.

Organization Management

List Members

Retrieve all members of your organization.

Send Invitation

Invite a new member to your organization.

Error Handling

Using SDK Error Classes

Handle errors using the SDK’s built-in error classes.

Pagination

Iterate Through All Results

Fetch all pages of a paginated endpoint.

Advanced Patterns

Retry with Exponential Backoff

The SDKs raise RateLimitError when you hit the rate limit. Build a retry wrapper that respects the Retry-After header.

Async Batch Processing

Use the async client to process multiple items concurrently with controlled parallelism.

Export with Timeout and Error Recovery

A production-ready export workflow with a timeout, progress logging, and proper error handling.

Upload Items via REST API

The SDKs focus on read operations. To upload items to a dataset, use the REST API directly.

Batch Export Multiple Projects

Export several projects in parallel and wait for all to complete.

Monitor Rate Limit Usage

Check your remaining rate limit budget before starting batch operations.