Create dataset
curl --request POST \
--url https://api.sidenet.ai/v1/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {
"source": "zendesk-export"
},
"items": [
{
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number."
}
]
}
'import requests
url = "https://api.sidenet.ai/v1/datasets"
payload = {
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": ["support", "refunds"],
"metadata": { "source": "zendesk-export" },
"items": [
{
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number."
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Refund questions',
description: 'Twelve refund questions with the policy answer for each',
agentId: '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
tags: ['support', 'refunds'],
metadata: {source: 'zendesk-export'},
items: [
{
input: 'Can I get a refund on an order I placed yesterday?',
groundTruth: 'Yes — orders can be refunded within 14 days. Ask for the order number.'
}
]
})
};
fetch('https://api.sidenet.ai/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sidenet.ai/v1/datasets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Refund questions',
'description' => 'Twelve refund questions with the policy answer for each',
'agentId' => '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
'tags' => [
'support',
'refunds'
],
'metadata' => [
'source' => 'zendesk-export'
],
'items' => [
[
'input' => 'Can I get a refund on an order I placed yesterday?',
'groundTruth' => 'Yes — orders can be refunded within 14 days. Ask for the order number.'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sidenet.ai/v1/datasets"
payload := strings.NewReader("{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sidenet.ai/v1/datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/datasets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"dataset": {
"id": "ds_orders_v3",
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {},
"version": 1,
"itemCount": 1,
"createdAt": "2026-08-04T10:22:05.117Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
},
"items": [
{
"id": "dsi_2c7e91b4",
"datasetId": "ds_orders_v3",
"version": 1,
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number.",
"requestContext": null,
"metadata": {
"category": "refunds"
},
"createdAt": "2026-08-04T10:31:48.006Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
}
]
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Datasets
Create dataset
Creates a dataset, optionally with its first items. A dataset is the list of prompts (and expected answers) that POST /v1/experiments runs an agent over. Send agentId to record which agent it was written for; send items to fill it in the same call — the same shape POST /v1/datasets//items takes.
POST
/
v1
/
datasets
Create dataset
curl --request POST \
--url https://api.sidenet.ai/v1/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {
"source": "zendesk-export"
},
"items": [
{
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number."
}
]
}
'import requests
url = "https://api.sidenet.ai/v1/datasets"
payload = {
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": ["support", "refunds"],
"metadata": { "source": "zendesk-export" },
"items": [
{
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number."
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Refund questions',
description: 'Twelve refund questions with the policy answer for each',
agentId: '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
tags: ['support', 'refunds'],
metadata: {source: 'zendesk-export'},
items: [
{
input: 'Can I get a refund on an order I placed yesterday?',
groundTruth: 'Yes — orders can be refunded within 14 days. Ask for the order number.'
}
]
})
};
fetch('https://api.sidenet.ai/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sidenet.ai/v1/datasets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Refund questions',
'description' => 'Twelve refund questions with the policy answer for each',
'agentId' => '6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10',
'tags' => [
'support',
'refunds'
],
'metadata' => [
'source' => 'zendesk-export'
],
'items' => [
[
'input' => 'Can I get a refund on an order I placed yesterday?',
'groundTruth' => 'Yes — orders can be refunded within 14 days. Ask for the order number.'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sidenet.ai/v1/datasets"
payload := strings.NewReader("{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sidenet.ai/v1/datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/datasets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Refund questions\",\n \"description\": \"Twelve refund questions with the policy answer for each\",\n \"agentId\": \"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10\",\n \"tags\": [\n \"support\",\n \"refunds\"\n ],\n \"metadata\": {\n \"source\": \"zendesk-export\"\n },\n \"items\": [\n {\n \"input\": \"Can I get a refund on an order I placed yesterday?\",\n \"groundTruth\": \"Yes — orders can be refunded within 14 days. Ask for the order number.\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"dataset": {
"id": "ds_orders_v3",
"name": "Refund questions",
"description": "Twelve refund questions with the policy answer for each",
"agentId": "6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10",
"tags": [
"support",
"refunds"
],
"metadata": {},
"version": 1,
"itemCount": 1,
"createdAt": "2026-08-04T10:22:05.117Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
},
"items": [
{
"id": "dsi_2c7e91b4",
"datasetId": "ds_orders_v3",
"version": 1,
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number.",
"requestContext": null,
"metadata": {
"category": "refunds"
},
"createdAt": "2026-08-04T10:31:48.006Z",
"updatedAt": "2026-08-04T10:31:48.006Z"
}
]
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Body
application/json
Example:
"Refund questions"
Example:
"Twelve refund questions with the policy answer for each"
The agent this dataset is written for (agent id or agent version id). Informational.
Example:
"6f1c0f4e-2b7a-4a51-9a2f-0c9d1b3e5a10"
Example:
["support", "refunds"]
Example:
{ "source": "zendesk-export" }
Initial items, at most 500.
Show child attributes
Show child attributes
Example:
[
{
"input": "Can I get a refund on an order I placed yesterday?",
"groundTruth": "Yes — orders can be refunded within 14 days. Ask for the order number."
}
]