Skip to Content
APIDatasets API

Datasets API

List and retrieve datasets and their items.

List Datasets

GET /api/v1/datasets/{owner_name}/list/

Returns datasets belonging to an owner that are visible to the current user.

Path Parameters

ParameterTypeDescription
owner_namestringUsername of the dataset owner

Query Parameters

ParameterTypeDescription
orderingstringField to order results by
pageintegerPage number for pagination
limitintegerResults per page

Example

curl "https://server.avala.ai/api/v1/datasets/johndoe/list/" \ -H "X-Avala-Api-Key: $AVALA_API_KEY"

Response

{ "count": 25, "next": "https://server.avala.ai/api/v1/datasets/johndoe/list/?page=2", "previous": null, "results": [ { "uid": "550e8400-e29b-41d4-a716-446655440000", "name": "Training Images", "slug": "training-images", "data_type": "image", "is_sequence": false, "visibility": "private", "status": "created", "item_count": 1000, "project_count": 2, "owner_name": "johndoe", "size_bytes": 5368709120, "annotations_count": 4500 } ] }

Dataset Fields

FieldTypeDescription
uidUUIDUnique identifier
namestringDataset name
slugstringURL-friendly identifier
data_typestringimage, lidar, video, or mcap
is_sequencebooleanWhether dataset contains sequences
visibilitystringpublic or private
statusstringcreating or created
item_countintegerNumber of items
project_countintegerNumber of associated projects
owner_namestringOwner’s username
size_bytesintegerTotal size in bytes
annotations_countintegerTotal annotation count

List Dataset Sequences

GET /api/v1/datasets/{owner_name}/{dataset_slug}/sequences/

List sequences within a dataset. Used for video and LiDAR datasets with frame sequences.

Path Parameters

ParameterTypeDescription
owner_namestringUsername of the dataset owner
dataset_slugstringDataset slug

Query Parameters

ParameterTypeDescription
orderingstringField to order results by
cursorstringPagination cursor
limitintegerResults per page

Example

curl "https://server.avala.ai/api/v1/datasets/johndoe/lidar-captures/sequences/" \ -H "X-Avala-Api-Key: $AVALA_API_KEY"

Response

{ "next": null, "previous": null, "results": [ { "uid": "seq-uuid-001", "key": "sequence_001", "status": "completed", "featured_image": "https://...", "number_of_frames": 150, "views": [ { "key": "camera_front", "load": "https://...", "metrics": null } ] } ] }

Sequence Status Values

Sequences can have various workflow statuses:

StatusDescription
unattemptedNot yet started
pendingAwaiting processing
completedFully annotated and reviewed
rework_requiredNeeds corrections
ready_for_annotationReady to be annotated
labeling_4d3D/4D annotation in progress
review_4d3D/4D review in progress
ready_for_2dReady for 2D annotation
labeling_2d2D annotation in progress
review_2d2D review in progress
final_reviewFinal QC review
customer_approvedApproved by customer

Data Types

TypeDescription
imageSingle images (JPEG, PNG, WebP)
videoVideo files converted to frame sequences
lidarPoint cloud data (PCD, PLY)
mcapMCAP files with sensor data

Error Responses

Not Found

{ "detail": "Not found." }

HTTP Status: 404

Permission Denied

{ "detail": "You do not have permission to perform this action." }

HTTP Status: 403

Last updated on