Lists every stored version of one prompt purpose, newest first. An unknown purpose returns 400. Super admins only.
GET
/ai/admin/prompts/{purpose}
curl \
--request GET 'http://api.example.com/ai/admin/prompts/{purpose}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"_id": "65a1b2c3d4e5f6a7b8c9d0e1",
"purpose": "case_summary",
"versionSlug": "case_summary.v2",
"systemPrompt": "string",
"toolName": "string",
"toolDescription": "string",
"toolInputSchema": {},
"model": "sonnet",
"maxTokens": 1024,
"temperature": 0.2,
"isActive": true,
"notes": "string",
"createdBy": "65a1b2c3d4e5f6a7b8c9d0e4",
"updatedBy": "65a1b2c3d4e5f6a7b8c9d0e4",
"createdAt": "2026-01-15T10:15:00.000Z",
"updatedAt": "2026-01-15T10:15:00.000Z"
}
],
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}