Workflows
Search Workflows
Search for workflows using sort, filter and pagination.
POST
/
workflow
/
search
Copy
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
}'
Copy
{
"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
}
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/workflow/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": "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
}
Assistant
Responses are generated using AI and may contain mistakes.