Skip to main content
POST
Create a new template

Authorizations

Authorization
string
header
required

Use a project private API key via Authorization: Bearer <key>.

Body

application/json
slug
string
required
mode
enum<string>
required
Available options:
text,
openai
content
object[]
required
extra
object
testValues
object
isDraft
boolean
notes
string

Response

200 - application/json

Successful response

id
string
name
string
slug
string
mode
enum<string>
Available options:
text,
openai
createdAt
string<date-time>
group
string
projectId
string
versions
object[]