Creating Datasets#
- GET https://api.sutro.sh/create-dataset#
Create a new internal dataset.
- Request Headers:
Authorization – Your Sutro API key.
- Accept:
application/json
- Returns:
A JSON object containing the dataset ID.
Example
import requests
import json
url = "https://api.sutro.sh/create-dataset"
headers = {
"Authorization": "Key <YOUR_API_KEY>",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
dataset_id = response.json()["dataset_id"]