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": "system",
"provider": "<string>",
"id": 123,
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"tools": [
{
"name": "<string>",
"inputSchema": {
"properties": {},
"required": [
"<string>"
],
"type": "object"
},
"description": ""
}
],
"outputSchema": {
"name": "<string>",
"schema": {
"properties": {},
"type": "object",
"required": [],
"additionalProperties": false
},
"description": "<string>",
"strict": false
},
"variables": []
}
]
}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": "system",
"provider": "<string>",
"id": 123,
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"tools": [
{
"name": "<string>",
"inputSchema": {
"properties": {},
"required": [
"<string>"
],
"type": "object"
},
"description": ""
}
],
"outputSchema": {
"name": "<string>",
"schema": {
"properties": {},
"type": "object",
"required": [],
"additionalProperties": false
},
"description": "<string>",
"strict": false
},
"variables": []
}
]
}