Skip to content

Create Playbook

POST
/api/research-playbooks
curl --request POST \
--url http://localhost:8000/api/research-playbooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "cell_budget_usd": 0.1, "description": "", "max_steps": 4, "name": "example", "output_format": "text", "prompt_template": "example", "steps": [ { "key": "example", "name": "example", "output_format": "text", "prompt_template": "example" } ] }'
x-workspace-id
Any of:
string
Media typeapplication/json
PlaybookCreate
object
cell_budget_usd
Cell Budget Usd
number
default: 0.1 > 0 <= 5
description
Description
string
"" <= 2000 characters
max_steps
Max Steps
integer
default: 4 >= 1 <= 8
name
required
Name
string
>= 1 characters <= 200 characters
output_format
Output Format
string
default: text
prompt_template
required
Prompt Template
string
>= 10 characters <= 20000 characters
steps
Steps
Array<object>
<= 8 items
PlaybookStep
object
key
required
Key
string
/^[a-z][a-z0-9_]{0,39}$/
name
required
Name
string
>= 1 characters <= 100 characters
output_format
Output Format
string
default: text
prompt_template
required
Prompt Template
string
>= 10 characters <= 20000 characters

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}