Skip to main content
POST
/
v1
/
prompts
/
versions
Append a new version to an existing prompt
curl --request POST \
  --url https://api.example.com/v1/prompts/versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptId": "<string>",
  "content": "Updated system prompt text"
}
'
{
  "id": "<string>",
  "promptId": "<string>",
  "version": 123,
  "content": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
promptId
string
required

Parent prompt UUID

content
string
required
Example:

"Updated system prompt text"

Response

201 - application/json
id
string
required

Version UUID

promptId
string
required

Parent prompt UUID

version
number
required

Sequential version number (starts at 1)

content
string
required

Prompt text; supports {{variable}} placeholders

createdAt
string<date-time>
required