Skip to main content
POST
/
v1
/
prompts
{
  "data": {
    "description": "<string>",
    "model_provider": "OPENAI",
    "model_name": "<string>",
    "template": {
      "type": "<string>",
      "messages": [
        {
          "role": "user",
          "content": "<string>"
        }
      ]
    },
    "template_type": "STR",
    "template_format": "MUSTACHE",
    "invocation_parameters": {
      "type": "<string>",
      "openai": {
        "temperature": 123,
        "max_tokens": 123,
        "max_completion_tokens": 123,
        "frequency_penalty": 123,
        "presence_penalty": 123,
        "top_p": 123,
        "seed": 123,
        "reasoning_effort": "minimal"
      }
    },
    "tools": {
      "type": "<string>",
      "tools": [
        {
          "type": "<string>",
          "function": {
            "name": "<string>",
            "description": "<string>",
            "parameters": {},
            "strict": true
          }
        }
      ],
      "tool_choice": {
        "type": "<string>"
      },
      "disable_parallel_tool_calls": true
    },
    "response_format": {
      "type": "<string>",
      "json_schema": {
        "name": "<string>",
        "description": "<string>",
        "schema": {},
        "strict": true
      }
    },
    "id": "<string>"
  }
}

Body

application/json
prompt
object
required
version
object
required

Response

The newly created prompt version

data
object
required