Skip to main content
POST
Create a prompt version message

Authorizations

Authorization
string
header
required

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

Body

application/json
promptVersionId
string<uuid>
required
role
enum<string>
required

Use system for the prompt content; other roles are accepted but are not read as the prompt.

Available options:
user,
assistant,
system,
function
content
string | null
markdownContent
string | null
index
integer

Defaults to 0.

id
string<uuid>

Optional client-supplied id.

Response

The created message.

id
string<uuid>
required
promptVersionId
string<uuid>
required
role
enum<string>
required
Available options:
user,
assistant,
system,
function
index
integer
required

Position of the message inside the version. The prompt is read from index 0.

createdBy
string
required
updatedBy
string
required
content
string | null

Plain-text prompt content. May use {{variable}} placeholders.

markdownContent
string | null
createdAt
string<date-time> | null
updatedAt
string<date-time> | null
deletedAt
string<date-time> | null