Get an action's config field schema (what to ask)
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_key}/config-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_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}/actions/{action_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}/actions/{action_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}/actions/{action_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}/actions/{action_key}/config-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_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"
},
{
"key": "query_description",
"label": "AI context / prompt",
"required": false,
"type": "text"
},
{
"key": "max_results",
"label": "Max results",
"required": false,
"type": "number",
"default": 10
}
]
}
}Flow
Get an action's config field schema (what to ask)
Returns the fields an action’s config needs — which are required, their type, and where to resolve options — so a client/MCP can ask the right questions instead of hard-coding each action. select/multi_select fields carry an options_kind (resolve via POST /flow/apps//options with any options_params); options_kind=intent_parameters is resolved from the intent’s parameters. requires_connection indicates whether an app_connection_uuid is needed. Use ?context=intent (default) or ?context=scenario.
GET
/
api
/
v1
/
flow
/
apps
/
{uid}
/
actions
/
{action_key}
/
config-schema
Get an action's config field schema (what to ask)
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_key}/config-schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_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}/actions/{action_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}/actions/{action_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}/actions/{action_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}/actions/{action_key}/config-schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/flow/apps/{uid}/actions/{action_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"
},
{
"key": "query_description",
"label": "AI context / prompt",
"required": false,
"type": "text"
},
{
"key": "max_results",
"label": "Max results",
"required": false,
"type": "number",
"default": 10
}
]
}
}