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 aPOST request with your bucket path to create a new dataset.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
dataset_name | string | Yes | The display name for the new dataset. |
bucket_path | string | Yes | S3 path to the bucket or folder containing your media files. |
Example
Response
dataset_id — you need it for all subsequent operations on this dataset.
Monitor Dataset Status
Poll the dataset status endpoint to track progress.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.| HTTP Code | Meaning |
|---|---|
| 200 | Dataset created successfully. |
| 400 | Bad Request — missing or invalid parameters. |
| 401 | Unauthorized — check your JWT token. |
| 500 | Internal Server Error — check that the S3 path is accessible. |