cURL
curl --request POST \ --url https://{api-address}.org.machina.gg/agent/search \ --header 'Content-Type: application/json' \ --header 'x-api-token: <api-key>' \ --data '{ "filters": {}, "sorters": [ "name", 1 ], "page": 1, "page_size": 10 }'
{ "data": [ { "_id": "67e09cb441dc71ef8db3992f", "name": "my-new-agent", "title": "My New Agent", "description": "Your agent description", "status": "inactive", "context": { "config-frequency": 0.04 }, "workflows": [ { "name": "sync-nba-embeds", "description": "sync-nba-embeds", "inputs": { "event_code": "$.get('event_code') or None" }, "outputs": { "sync-nba-embeds-status": "$.get('workflow-status', False)" } } ], "created": "Sun, 23 Mar 2025 23:43:48 GMT", "date": "Sun, 23 Mar 2025 23:43:48 GMT" } ], "status": true, "total_documents": 1 }
Search for an agent using sort, filter and pagination.
API key authentication
Query filters object
Array containing field name and sort direction
["name", 1]
Page number (starts from 1)
Number of items per page
Successful operation
Show child attributes
Operation status
true
Total number of documents matching the query
1