List all created flows
Get an overview of all created flows. For each flow, the result provides details about the used template, the configured parameters, the status, and current progress. The sort_by parameter allows to sort the flows by one of the fields: status, progress, created_at, started_at, finished_at. The filter_by parameter allows to filter the fields returned in each flow summary. If not provided, all fields are returned.
Endpoint
GEThttps://flows.generio.ai/flows
Parameters
filter_by (optional)
Filter flows by their status to include only flows that have a certain status. Value must be one of: created, running, aborting, completed, aborted, and failed. If not provided, all flows are returned.
- Location: query
- Type: string
sort_by (optional)
Sort flows by one of: status, progress, created_at, started_at, finished_at
- Location: query
- Type: string
- Default:
created_at
Code Examples
Copy and run these examples in your terminal or code editor. Make sure to replace YOUR_TOKEN with your actual authentication token.
- cURL
- wget
- Python
- JavaScript
- PHP
curl -X GET "https://flows.generio.ai/flows" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/flows" -O -
import requests
url = "https://flows.generio.ai/flows"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
const url = "https://flows.generio.ai/flows";
fetch(url, {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
<?php
$url = "https://flows.generio.ai/flows";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_TOKEN"
]);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);