Skip to main content
You can call the Avala API directly over HTTP from any programming language, shell script, or automation tool. No SDK required.

Base URL

All API requests are made to:

Authentication

Every request must include your API key in the X-Avala-Api-Key header.
You can find your API key in the Avala dashboard under Settings > Security.

Making Requests

Below are examples of listing datasets across several languages.

Handling Pagination

List endpoints return paginated results using cursor-based pagination with next, previous, and results fields. Response structure:
Paginating through all results:

Error Handling

The API returns standard HTTP status codes. Error responses include a JSON body with details. Error response format:
For validation errors, DRF returns field-level errors:

Handling Errors in Code

When you receive a 429 response, always check the Retry-After header for the number of seconds to wait before retrying. The X-RateLimit-Remaining header on every response tells you how many requests you have left.

File Uploads

File uploads use presigned URLs rather than direct multipart uploads to the API. The general flow is:
  1. Request a presigned upload URL from the API
  2. Upload the file directly to cloud storage using the presigned URL
  3. Confirm the upload with the API

Common Patterns

List All Items with Pagination

This pattern fetches every item in a dataset by following pagination URLs until all pages have been retrieved.

Create and Wait for an Export

This pattern starts an export job and polls until it finishes, then retrieves the download URL.