curl -X GET https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
}
);
const result = await response.json();
import requests
response = requests.get(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
},
)
result = response.json()
{
"data": {
"id": "prompt_abc123xyz",
"name": "Customer Support Agent",
"tags": ["support", "customer-service"],
"created_at": "2024-03-10T12:00:00Z"
},
"error": null
}
{
"data": null,
"error": "Prompt not found"
}
Prompts
Get Prompt
Retrieve a prompt by ID
GET
/
v1
/
prompt-2025
/
id
/
{promptId}
curl -X GET https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
}
);
const result = await response.json();
import requests
response = requests.get(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
},
)
result = response.json()
{
"data": {
"id": "prompt_abc123xyz",
"name": "Customer Support Agent",
"tags": ["support", "customer-service"],
"created_at": "2024-03-10T12:00:00Z"
},
"error": null
}
{
"data": null,
"error": "Prompt not found"
}
Retrieves a prompt template by its unique identifier. This returns the prompt metadata including name, tags, and creation date.
Path Parameters
string
required
The unique identifier of the prompt
Response
object
string | null
Error message if the request failed, null otherwise
curl -X GET https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
}
);
const result = await response.json();
import requests
response = requests.get(
'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
},
)
result = response.json()
{
"data": {
"id": "prompt_abc123xyz",
"name": "Customer Support Agent",
"tags": ["support", "customer-service"],
"created_at": "2024-03-10T12:00:00Z"
},
"error": null
}
{
"data": null,
"error": "Prompt not found"
}
⌘I
