GET
/
create-dataset
Creating Datasets
curl --request GET \
  --url https://api.sutro.sh/create-dataset \
  --header 'Authorization: <authorization>'
{
  "dataset_id": "ds_abc123xyz"
}
Create a new internal dataset.

Headers

Authorization
string
required
Your Sutro API key using Key authentication scheme.Format: Key YOUR_API_KEYExample: Authorization: Key sk_live_abc123...

Response

A JSON object containing the dataset ID.
dataset_id
string
The unique identifier for the created dataset
{
  "dataset_id": "ds_abc123xyz"
}

Code Examples

import requests

response = requests.get(
    'https://api.sutro.sh/create-dataset',
    headers={
        'Authorization': 'Key YOUR_SUTRO_API_KEY',
        'Accept': 'application/json'
    }
)

result = response.json()
print(f"Dataset created: {result['dataset_id']}")