List all available templates
This endpoint returns a list of all available templates. 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 excepts as input (input types), and what it will provide as output (output types).
Endpoint
GEThttps://flows.generio.ai/templates
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" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
wget --header="Authorization: Bearer YOUR_TOKEN" \
"https://flows.generio.ai/templates" -O -
import requests
url = "https://flows.generio.ai/templates"
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";
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";
$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);