Skip to main content
POST
/
v1
/
takeaways
Create Takeaway
curl --request POST \
  --url https://api.example.com/v1/takeaways \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "schema": {},
  "description": "<string>",
  "prompt": "<string>",
  "model": "<string>"
}
'
{}

Headers

authorization
string | null

Body

application/json
name
string
required
Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9_-]*$
schema
Schema · object
required
description
string | null
Maximum string length: 2000
prompt
string | null
Maximum string length: 4000
model
string | null
Maximum string length: 100

Response

Successful Response

The response is of type Response Create Takeaway V1 Takeaways Post · object.