Using the API directly is not recommended for most users. Instead, we recommend using the
Python SDK.
Create a new internal dataset.
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.
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']}")