Get Prompt Template
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"prompt_default": "<string>",
"object": "prompt_template",
"prompt_type": "<string>",
"created_at": "<string>"
}Prompt Templates
Get Prompt Template
Get a prompt template by ID.
GET
/
api
/
v1
/
prompt-templates
/
{template_id}
Get Prompt Template
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/prompt-templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"prompt_default": "<string>",
"object": "prompt_template",
"prompt_type": "<string>",
"created_at": "<string>"
}