Skip to main content
Create, list, retrieve, and manage slices for your datasets.
Slices are curated subsets of one or more datasets. Each slice is composed of sub-slices that can reference entire datasets, specific items within a dataset, or a filter expression. Slices do not duplicate the underlying data — they reference items in their source datasets.

List Slices

Returns all slices owned by the specified organization or user.

Parameters

Request

Response

Fields

You can also list slices filtered by dataset:

Create Slice

Creates a new slice from one or more sub-slice definitions.

Parameters

Request

Response

Newly created slices have status: "pending" and item_count: 0. Items are populated asynchronously — poll the Get Slice endpoint to check when status changes to "created".

Get Slice

Returns the details of a specific slice.

Parameters

Request

Response

Fields

Same as List Slices fields.

List Slice Items

Returns the items belonging to a specific slice.

Parameters

Request

Response

The response returns dataset items in the same format as List Items. Each item includes uid, key, url, thumbnails, metadata, created_at, and related fields.

Sub-slice Types

Each entry in the sub_slices array has a type field and type-specific properties:

dataset — All items from a dataset

Include every item from a dataset.

dataset_items — Specific items from a dataset

Include only the specified items.

filters — Filter expression

Include items matching a filter expression.

Validate Slice Name

Validates a proposed slice name before creation.

Request

Response


Error Responses

Validation Error (400)

Returned when the request body is missing required fields or contains invalid values.

Unauthorized (401)

Returned when the X-Avala-Api-Key header is missing or contains an invalid key.

Permission Denied (403)

Returned when the authenticated user does not have access to the requested dataset or slice.

Not Found (404)

Returned when the specified slice or referenced dataset UUID does not exist.