Agents
Search Agents
Search for an agent using sort, filter and pagination.
POST
/
agent
/
search
Copy
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
}'
Copy
{
"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
}
Authorizations
API key authentication
Body
application/json
Response
200
application/json
Successful operation
The response is of type object
.
Copy
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
}'
Copy
{
"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
}
Assistant
Responses are generated using AI and may contain mistakes.