curl --request GET \
--url https://app.asserto.ai/api/prompts
{
"data": [
{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"name": "<string>",
"kind": "<string>",
"provider": "<string>",
"url": "<string>"
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"variables": [],
"tools": [
{
"name": "<string>",
"description": "<string>",
"inputSchema": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
]
}
]
}
Get all project’s prompts. The project is given by its API key.
curl --request GET \
--url https://app.asserto.ai/api/prompts
{
"data": [
{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"name": "<string>",
"kind": "<string>",
"provider": "<string>",
"url": "<string>"
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"variables": [],
"tools": [
{
"name": "<string>",
"description": "<string>",
"inputSchema": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
]
}
]
}
API Key in the format: Authorization: ApiKey <key>
Successful Response
The response is of type object
.