Get a specific template by ID or name
This endpoint returns the details of a specific template identified by its ID or name. Templates are used to create new flows. Each template includes details that help understanding what the created flow is used for (description), how it can be configured (parameters), what it expects as input (input types), and what it will provide as output (output types).
info
This endpoint allows you to get a specific template by id or name.
Endpoint
GET https://flows.generio.ai/templates/{template_id_or_name}
Parameters
template_id_or_name (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/templates/{template_id_or_name}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/templates/{template_id_or_name}" -O -
import requests
url = "https://flows.generio.ai/templates/{template_id_or_name}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
const url = "https://flows.generio.ai/templates/{template_id_or_name}";
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/templates/{template_id_or_name}";
$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;
?>