Get a specific output file for a flow
This endpoint allows to download the generated output files of a flow. The reference {file_id} needed to download an output file is provided in the previous route (GET /{flow_id}/output).
Endpoint
GEThttps://flows.generio.ai/flows/{flow_id}/output/{file_id}
Parameters
flow_id (required)
- Location: path
- Type: string
- Example:
string
file_id (required)
- Location: path
- Type: string
- Example:
string
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/{file_id}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/flows/{flow_id}/output/{file_id}" -O -
import requests
url = "https://flows.generio.ai/flows/{flow_id}/output/{file_id}"
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/{file_id}";
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/{file_id}";
$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);