Skip to main content

Endpoint

string
default:"POST"
POST
string
/v1/prompt/create

Authentication

This endpoint requires API key authentication. Include your API key in the request headers:

Request Body

string
required
User-defined identifier for the prompt. This is used to reference the prompt in your code
object
required
The prompt template content. Should follow OpenAI chat completion format with messages array and model
object
required
Additional metadata for the prompt as key-value pairs

Response

object
Created prompt information
string
Unique identifier for the prompt
string
Unique identifier for the initial prompt version
string | null
Error message if the request failed, null otherwise

Example Request

Example Response

Notes

  • The userDefinedId must be unique within your organization
  • Use {{variable_name}} syntax for template variables in your prompt
  • The initial version is automatically set as version 1.0