Get a specific input asset
Retrieve a specific input asset from a flow by its asset ID.
Response includes:
- Full file data as data URI (base64-encoded)
- File status (available, processing, error)
- Processing timestamp (when the input was processed)
- Additional custom metadata attached to the input
Use Cases:
- Download a specific input file
- Verify the content of an uploaded input
- Retrieve input metadata and processing information
- Debug input-related issues
Note: This endpoint always returns the full file data, unlike GET /flows/{flow_id}/inputs which allows optional data inclusion via query parameter.
info
This endpoint allows you to get a specific input asset.
Endpoint
GET https://flows.generio.ai/flows/{flow_id}/inputs/{asset_id}
Parameters
flow_id (required)
- Location: path
- Type: string
asset_id (required)
- Location: path
- Type: string
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/{asset_id}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/flows/{flow_id}/inputs/{asset_id}" -O -
import requests
url = "https://flows.generio.ai/flows/{flow_id}/inputs/{asset_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}/inputs/{asset_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}/inputs/{asset_id}";
$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;
?>