cURL
curl --request POST \ --url https://{api-address}.org.machina.gg/workflow/search \ --header 'Content-Type: application/json' \ --header 'x-api-token: <api-key>' \ --data '{ "filters": {}, "sorters": [ "name", 1 ], "page": 1, "page_size": 10 }'
{ "data": [ { "_id": "67db52c32ae92018b93310a1", "created": "Wed, 20 Mar 2025 14:30:00 GMT", "name": "thread", "value": { "messages": [ "test" ] }, "metadata": { "agent_id": "123" }, "status": "active", "date": "Wed, 20 Mar 2025 14:30:00 GMT" } ], "total_documents": 15, "status": true }
Search for workflows 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
Array of matching workflows
Show child attributes
Total number of matching workflows
Operation status