Get a list of all AI agents
curl --request GET \
--url https://api.wacht.dev/ai-agents \
--header 'Authorization: Bearer <token>'
{
"total": 100,
"page": 1,
"per_page": 20,
"total_pages": 5,
"data": [
{
"id": "<string>",
"name": "Customer Support Agent",
"description": "AI agent for handling customer support inquiries",
"model": "gpt-4",
"system_prompt": "<string>",
"temperature": 0.7,
"max_tokens": 1000,
"tools": [
"<string>"
],
"knowledge_bases": [
"<string>"
],
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
JWT Bearer token authentication using the Authorization header
Successful response
The response is of type object
.
curl --request GET \
--url https://api.wacht.dev/ai-agents \
--header 'Authorization: Bearer <token>'
{
"total": 100,
"page": 1,
"per_page": 20,
"total_pages": 5,
"data": [
{
"id": "<string>",
"name": "Customer Support Agent",
"description": "AI agent for handling customer support inquiries",
"model": "gpt-4",
"system_prompt": "<string>",
"temperature": 0.7,
"max_tokens": 1000,
"tools": [
"<string>"
],
"knowledge_bases": [
"<string>"
],
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}