curl -X GET "https://api.helicone.ai/v1/prompt-2025/environments" \
-H "Authorization: Bearer $HELICONE_API_KEY"
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/environments', {
method: 'GET',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
},
});
const environments = await response.json();
[
"production",
"staging",
"development"
]
Prompts
Get Environments
Get all available environments across your prompts
GET
/
v1
/
prompt-2025
/
environments
curl -X GET "https://api.helicone.ai/v1/prompt-2025/environments" \
-H "Authorization: Bearer $HELICONE_API_KEY"
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/environments', {
method: 'GET',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
},
});
const environments = await response.json();
[
"production",
"staging",
"development"
]
Returns a list of all environment names that have been used across your prompt versions.
Response
string[]
Array of environment names (e.g., [“production”, “staging”, “development”])
curl -X GET "https://api.helicone.ai/v1/prompt-2025/environments" \
-H "Authorization: Bearer $HELICONE_API_KEY"
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/environments', {
method: 'GET',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
},
});
const environments = await response.json();
[
"production",
"staging",
"development"
]
Was this page helpful?