curl -X POST "https://api.helicone.ai/v1/prompt-2025" \
-H "Authorization: Bearer $HELICONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer Support Bot",
"tags": ["support", "chatbot"],
"promptBody": {
"model": "gpt-4",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support assistant."
}
],
"temperature": 0.7
}
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Customer Support Bot",
tags: ["support", "chatbot"],
promptBody: {
model: "gpt-4",
messages: [
{
role: "system",
content: "You are a helpful customer support assistant."
}
],
temperature: 0.7
}
}),
});
const result = await response.json();
{
"id": "prompt_123",
"versionId": "version_456"
}
Prompts
Create Prompt
Create a new prompt with initial version
POST
/
v1
/
prompt-2025
curl -X POST "https://api.helicone.ai/v1/prompt-2025" \
-H "Authorization: Bearer $HELICONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer Support Bot",
"tags": ["support", "chatbot"],
"promptBody": {
"model": "gpt-4",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support assistant."
}
],
"temperature": 0.7
}
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Customer Support Bot",
tags: ["support", "chatbot"],
promptBody: {
model: "gpt-4",
messages: [
{
role: "system",
content: "You are a helpful customer support assistant."
}
],
temperature: 0.7
}
}),
});
const result = await response.json();
{
"id": "prompt_123",
"versionId": "version_456"
}
Creates a new prompt with the specified name, tags, and initial prompt body. Returns the prompt ID and initial version ID.
Request Body
Response
curl -X POST "https://api.helicone.ai/v1/prompt-2025" \
-H "Authorization: Bearer $HELICONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer Support Bot",
"tags": ["support", "chatbot"],
"promptBody": {
"model": "gpt-4",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support assistant."
}
],
"temperature": 0.7
}
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Customer Support Bot",
tags: ["support", "chatbot"],
promptBody: {
model: "gpt-4",
messages: [
{
role: "system",
content: "You are a helpful customer support assistant."
}
],
temperature: 0.7
}
}),
});
const result = await response.json();
{
"id": "prompt_123",
"versionId": "version_456"
}
Was this page helpful?