List all input assets for a flow
Get an overview of all uploaded input assets for a specific flow.
Query Parameters:
include_data: Boolean flag to include or exclude the actual file data in the responsetrue: Returns full data URIs (base64-encoded) - use for downloading/viewing inputsfalse(default): Returns only metadata - use for listing/overview
Response includes:
- Asset ID for each input
- File status (available, processing, error)
- Processing status (whether input has been processed)
- Additional custom metadata attached to each input
- File data (if
include_data=true)
Use Cases:
- Verify all required inputs have been uploaded
- Check input processing status
- Review input metadata before starting a flow
- Download original input files for reference
info
This endpoint allows you to list all input assets for a flow.
Endpoint
GET https://flows.generio.ai/flows/{flow_id}/inputs
Parameters
flow_id (required)
- Location: path
- Type: string
include_data (optional)
Whether to include the data of the assets.
- Location: query
- Type: string
- Default:
false
Responses
200
Successful Response
422
Validation Error
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}/inputs" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/flows/{flow_id}/inputs" -O -
import requests
url = "https://flows.generio.ai/flows/{flow_id}/inputs"
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}/inputs";
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}/inputs";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_TOKEN",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>