Skip to main content

How This Helps

Creating a dataset from S3 is the recommended approach for production workflows. Point the API at your S3 bucket path and Visual Layer handles ingestion, indexing, and clustering automatically.
Use status_new for all status checks. The status field is being retired. See Retrieve Dataset Status.

Prerequisites

  • A Visual Layer Cloud account with API access.
  • A valid JWT token. See Authentication.
  • An S3 bucket containing your images or videos, accessible to Visual Layer.

Create a Dataset from S3

Send a POST request with your bucket path to create a new dataset.

Parameters

Example

Response

Save the dataset_id — you need it for all subsequent operations on this dataset.
Dataset creation is asynchronous. After the initial request, poll GET /api/v1/dataset/{dataset_id} until status_new is READY before running search or export operations.

Monitor Dataset Status

Poll the dataset status endpoint to track progress.
The response includes a status_new field that transitions from INDEXING to READY when complete. See Retrieve Dataset Status for full status documentation.

Python Example


Response Codes

See Error Handling for the error response format and Python handling patterns.

Retrieve Dataset Status

Poll dataset status until processing completes.

Add Media to an Existing Dataset

Incrementally add new media to an indexed dataset.