cURL
curl -X GET "https://app.cotool.ai/api/agents/:agentId/system-prompts" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
[ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "changedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "changedByEmail": "[email protected]", "description": "<string>", "prompt": "<string>", "status": "draft", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ]
List all system prompt versions for an agent
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Successful response
draft
active
previous
Was this page helpful?