Preview scenarios
curl --request POST \
--url https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios \
--header 'Content-Type: application/json' \
--cookie session= \
--data '
{
"agent": {
"name": "<string>",
"system_prompt": "<string>",
"tone": "",
"skills": [],
"memory": [],
"tools": []
},
"dataset": {
"system_label": "Synthetic system of record",
"entities": [],
"rollups": [],
"row_count": 0
},
"count": 3
}
'import requests
url = "https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios"
payload = {
"agent": {
"name": "<string>",
"system_prompt": "<string>",
"tone": "",
"skills": [],
"memory": [],
"tools": []
},
"dataset": {
"system_label": "Synthetic system of record",
"entities": [],
"rollups": [],
"row_count": 0
},
"count": 3
}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent: {
name: '<string>',
system_prompt: '<string>',
tone: '',
skills: [],
memory: [],
tools: []
},
dataset: {
system_label: 'Synthetic system of record',
entities: [],
rollups: [],
row_count: 0
},
count: 3
})
};
fetch('https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios', 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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios",
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([
'agent' => [
'name' => '<string>',
'system_prompt' => '<string>',
'tone' => '',
'skills' => [
],
'memory' => [
],
'tools' => [
]
],
'dataset' => [
'system_label' => 'Synthetic system of record',
'entities' => [
],
'rollups' => [
],
'row_count' => 0
],
'count' => 3
]),
CURLOPT_COOKIE => "session=",
CURLOPT_HTTPHEADER => [
"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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios"
payload := strings.NewReader("{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "session=")
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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios")
.header("cookie", "session=")
.header("Content-Type", "application/json")
.body("{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"scenarios": [
{
"name": "<string>",
"category": "<string>",
"goal_description": "<string>",
"turns": [
{
"role": "<string>",
"content": "<string>"
}
]
}
],
"failures": 123,
"usage": {
"model": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"cost_usd": 123
}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}Preview scenarios
Step 3: drafts up to 3 sample scenarios for the synthesized agent with the same generator the Cost Calculator uses, on the platform’s key. Nothing is stored. Returns 202 when some scenarios failed to generate.
Auth: session. Permission: run_agents or manage_agents.
POST
/
projects
/
{projectId}
/
synthetic
/
scenarios
Preview scenarios
curl --request POST \
--url https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios \
--header 'Content-Type: application/json' \
--cookie session= \
--data '
{
"agent": {
"name": "<string>",
"system_prompt": "<string>",
"tone": "",
"skills": [],
"memory": [],
"tools": []
},
"dataset": {
"system_label": "Synthetic system of record",
"entities": [],
"rollups": [],
"row_count": 0
},
"count": 3
}
'import requests
url = "https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios"
payload = {
"agent": {
"name": "<string>",
"system_prompt": "<string>",
"tone": "",
"skills": [],
"memory": [],
"tools": []
},
"dataset": {
"system_label": "Synthetic system of record",
"entities": [],
"rollups": [],
"row_count": 0
},
"count": 3
}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent: {
name: '<string>',
system_prompt: '<string>',
tone: '',
skills: [],
memory: [],
tools: []
},
dataset: {
system_label: 'Synthetic system of record',
entities: [],
rollups: [],
row_count: 0
},
count: 3
})
};
fetch('https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios', 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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios",
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([
'agent' => [
'name' => '<string>',
'system_prompt' => '<string>',
'tone' => '',
'skills' => [
],
'memory' => [
],
'tools' => [
]
],
'dataset' => [
'system_label' => 'Synthetic system of record',
'entities' => [
],
'rollups' => [
],
'row_count' => 0
],
'count' => 3
]),
CURLOPT_COOKIE => "session=",
CURLOPT_HTTPHEADER => [
"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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios"
payload := strings.NewReader("{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "session=")
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://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios")
.header("cookie", "session=")
.header("Content-Type", "application/json")
.body("{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pillarforge.corepillar.ai/api/v1/projects/{projectId}/synthetic/scenarios")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": {\n \"name\": \"<string>\",\n \"system_prompt\": \"<string>\",\n \"tone\": \"\",\n \"skills\": [],\n \"memory\": [],\n \"tools\": []\n },\n \"dataset\": {\n \"system_label\": \"Synthetic system of record\",\n \"entities\": [],\n \"rollups\": [],\n \"row_count\": 0\n },\n \"count\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"scenarios": [
{
"name": "<string>",
"category": "<string>",
"goal_description": "<string>",
"turns": [
{
"role": "<string>",
"content": "<string>"
}
]
}
],
"failures": 123,
"usage": {
"model": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"cost_usd": 123
}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}Authorizations
The session cookie set when you sign in to AgentHub or ModelHub in a browser. The cookie name shown here is illustrative. There are no API tokens for these endpoints.
Path Parameters
Project id.
Body
application/json
Response
Scenarios.
Show child attributes
Show child attributes