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
}
Create a new prompt with initial version
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
}
Creates a new prompt template with an initial version. The prompt body uses the OpenAI chat format.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.
Show Prompt Body
Show Message Object
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
}