Get prompt version by name
curl --request GET \
--url https://api.futureagi.com/model-hub/prompt-labels/get-by-name/ \
--header 'X-Api-Key: <api-key>' \
--header 'X-Secret-Key: <api-key>'import requests
url = "https://api.futureagi.com/model-hub/prompt-labels/get-by-name/"
headers = {
"X-Api-Key": "<api-key>",
"X-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<api-key>', 'X-Secret-Key': '<api-key>'}
};
fetch('https://api.futureagi.com/model-hub/prompt-labels/get-by-name/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"result": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "customer-support-agent",
"description": "Customer support prompt template",
"variable_names": [
"company_name",
"order_id"
],
"organization": "11111111-2222-3333-4444-555555555555",
"prompt_folder": null,
"placeholders": null,
"created_by": "user@example.com",
"prompt_config": [
{
"messages": [
{
"role": "system",
"content": "You are a customer support agent for {{company_name}}."
}
],
"configuration": {
"model": "gpt-4o",
"temperature": 0.7,
"max_tokens": 1000,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0
}
}
],
"version": "v1",
"output": null,
"is_draft": false,
"metadata": null,
"labels": [
{
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"name": "Production",
"type": "system"
}
]
}
}Prompt Workbench
Get prompt version by name
Fetch a prompt version by template name and either an explicit version (e.g. v1) or a label name (e.g. Production). When both version and label are provided, version takes precedence. Returns the full prompt template data along with the resolved version’s configuration, variables, output schema, and assigned labels.
GET
/
model-hub
/
prompt-labels
/
get-by-name
/
Get prompt version by name
curl --request GET \
--url https://api.futureagi.com/model-hub/prompt-labels/get-by-name/ \
--header 'X-Api-Key: <api-key>' \
--header 'X-Secret-Key: <api-key>'import requests
url = "https://api.futureagi.com/model-hub/prompt-labels/get-by-name/"
headers = {
"X-Api-Key": "<api-key>",
"X-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Api-Key': '<api-key>', 'X-Secret-Key': '<api-key>'}
};
fetch('https://api.futureagi.com/model-hub/prompt-labels/get-by-name/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"result": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "customer-support-agent",
"description": "Customer support prompt template",
"variable_names": [
"company_name",
"order_id"
],
"organization": "11111111-2222-3333-4444-555555555555",
"prompt_folder": null,
"placeholders": null,
"created_by": "user@example.com",
"prompt_config": [
{
"messages": [
{
"role": "system",
"content": "You are a customer support agent for {{company_name}}."
}
],
"configuration": {
"model": "gpt-4o",
"temperature": 0.7,
"max_tokens": 1000,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0
}
}
],
"version": "v1",
"output": null,
"is_draft": false,
"metadata": null,
"labels": [
{
"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"name": "Production",
"type": "system"
}
]
}
}Was this page helpful?
⌘I