List all output files for a flow
This endpoint provides an overview of all output files. The output files are available as soon as the flow has finished/stopped. When calling this route on a still runing flow, no output files are listed. The individual output files need to be downloaded via the next route (GET /{flow_id}/output/{file_id})
Endpoint
GEThttps://flows.generio.ai/flows/{flow_id}/output
Parameters
flow_id (required)
- Location: path
- Type: string
- Example:
string
include_data (optional)
If this parameter is present and set to true, the output files will include the file data directly in the response. Otherwise, only the URLs to download the files are provided.
- Location: query
- Type: string
- Example:
false - Default:
false
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/{flow_id}/output" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/flows/{flow_id}/output" -O -
import requests
url = "https://flows.generio.ai/flows/{flow_id}/output"
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/{flow_id}/output";
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/{flow_id}/output";
$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);