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
}
}'
{
"id": "prompt_123",
"versionId": "version_456"
}
Create a new prompt with initial version
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
}
}'
{
"id": "prompt_123",
"versionId": "version_456"
}
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
}
}'
{
"id": "prompt_123",
"versionId": "version_456"
}
Was this page helpful?