Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Path Parameters

id
string
required

Prompt ID

Body

application/json
commit_message
string
required
messages
object[]
required

Array of message objects

model_params
object
required
provider
string
required
model
string
required

Response

Version created

version
object

Prompt version (immutable snapshot)