Create a prompt

Create a new prompt template.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringRequired
Prompt name.
descriptionstringOptional
Prompt description.

Response

Prompt created successfully.
idstring
The unique prompt identifier.
namestring
descriptionstring or null
prompt_slugstring or null
tagslist of objects
current_versionobject or null
live_versionobject or null
created_atdatetime
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error