Skip to main content
POST
/
v1
/
prompt-2025
curl -X POST https://api.helicone.ai/v1/prompt-2025 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Customer Support Agent",
    "tags": ["support", "customer-service"],
    "promptBody": {
      "model": "gpt-4o",
      "messages": [
        {
          "role": "system",
          "content": "You are a helpful customer support agent. Be polite and professional."
        },
        {
          "role": "user",
          "content": "{{user_question}}"
        }
      ],
      "temperature": 0.7,
      "max_tokens": 500
    }
  }'
{
  "data": {
    "id": "prompt_abc123xyz",
    "versionId": "version_def456uvw"
  },
  "error": null
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt

Use this file to discover all available pages before exploring further.

Creates a new prompt template with an initial version. The prompt body uses the OpenAI chat format.

Request Body

name
string
required
Name of the prompt template
tags
string[]
required
Array of tags to categorize the prompt
promptBody
object
required
The prompt content in OpenAI chat format

Response

data
object
id
string
The unique identifier for the created prompt
versionId
string
The unique identifier for the initial version
error
string | null
Error message if the request failed, null otherwise
curl -X POST https://api.helicone.ai/v1/prompt-2025 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Customer Support Agent",
    "tags": ["support", "customer-service"],
    "promptBody": {
      "model": "gpt-4o",
      "messages": [
        {
          "role": "system",
          "content": "You are a helpful customer support agent. Be polite and professional."
        },
        {
          "role": "user",
          "content": "{{user_question}}"
        }
      ],
      "temperature": 0.7,
      "max_tokens": 500
    }
  }'
{
  "data": {
    "id": "prompt_abc123xyz",
    "versionId": "version_def456uvw"
  },
  "error": null
}