Get a trigger's config field schema (what to ask)
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"requires_connection": false,
"fields": [
{
"key": "table_uuid",
"label": "Table",
"required": true,
"type": "select",
"options_kind": "tables"
}
]
}
}Flow
Get a trigger's config field schema (what to ask)
Like the action config-schema, but for a trigger. Returns the fields a trigger needs (e.g. Tables record_created needs a table_uuid; Zoho new_or_update_module_entry needs a module). Triggers with no config (e.g. Webhooks catch_webhook, Zoho fixed-module triggers) return an empty fields array with a note. select fields carry options_kind/options_params resolved via POST /flow/apps//options.
GET
/
api
/
v1
/
flow
/
apps
/
{uid}
/
triggers
/
{trigger_key}
/
config-schema
Get a trigger's config field schema (what to ask)
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/triggers/{trigger_key}/config-schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {
"requires_connection": false,
"fields": [
{
"key": "table_uuid",
"label": "Table",
"required": true,
"type": "select",
"options_kind": "tables"
}
]
}
}⌘I