curl --request GET \
--url https://app.asserto.ai/api/prompts/{slug}
{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"id": 123,
"name": "<string>",
"kind": "system",
"provider": "<string>",
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"outputSchema": {
"name": "<string>",
"description": "<string>",
"schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"strict": false
},
"variables": [],
"tools": [
{
"name": "<string>",
"description": "",
"inputSchema": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
]
}
Get single prompt by slug.
Get only major versions
curl --request GET \
--url https://app.asserto.ai/api/prompts/{slug}
{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"id": 123,
"name": "<string>",
"kind": "system",
"provider": "<string>",
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"outputSchema": {
"name": "<string>",
"description": "<string>",
"schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"strict": false
},
"variables": [],
"tools": [
{
"name": "<string>",
"description": "",
"inputSchema": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
]
}
API Key in the format: Authorization: ApiKey <key>
Successful Response
Prompt info with nested tool definitions