curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/workspace/queue/options \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/workspace/queue/options"
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/workspace/queue/options', 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/workspace/queue/options",
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/workspace/queue/options"
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/workspace/queue/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/workspace/queue/options")
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": "Queue options retrieved",
"data": {
"schema": {},
"available_endpoints": {},
"agents": [
{
"uuid": "<string>",
"label": "<string>"
}
],
"users": [
{
"email": "<string>",
"label": "<string>"
}
],
"contact_fields": [
{
"key": "<string>",
"label": "<string>"
}
],
"target_queues": [
{
"uuid": "<string>",
"name": "<string>",
"channel_count": 123
}
],
"knowledge_gap_queues": [
{
"uuid": "<string>",
"name": "<string>",
"human_or_copilot_channel_count": 123
}
]
}
}Queue designer schema, enums, conditionals, and live options
Call this before creating or editing a queue. The response is intentionally descriptive for developers and AI agents: schema.channels tells which endpoint id to use when a channel is selected (call/phone uses available_endpoints.call[].id, facebook uses page_id, instagram uses instagram_business_id); schema.conditional_by_mode tells which settings are shown or omitted for autopilot, copilot, and human_first; schema.flow lists overflow, escalation, knowledge-gap, callback, and working-hours enums; schema.routing_rules lists IF -> THEN trigger requirements. agents, users, contact_fields, target_queues, and knowledge_gap_queues are live workspace choices.
curl --request GET \
--url https://{subdomain}.mihu.ai/api/v1/workspace/queue/options \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.mihu.ai/api/v1/workspace/queue/options"
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/workspace/queue/options', 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/workspace/queue/options",
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/workspace/queue/options"
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/workspace/queue/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mihu.ai/api/v1/workspace/queue/options")
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": "Queue options retrieved",
"data": {
"schema": {},
"available_endpoints": {},
"agents": [
{
"uuid": "<string>",
"label": "<string>"
}
],
"users": [
{
"email": "<string>",
"label": "<string>"
}
],
"contact_fields": [
{
"key": "<string>",
"label": "<string>"
}
],
"target_queues": [
{
"uuid": "<string>",
"name": "<string>",
"channel_count": 123
}
],
"knowledge_gap_queues": [
{
"uuid": "<string>",
"name": "<string>",
"human_or_copilot_channel_count": 123
}
]
}
}Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Query Parameters
Current queue being edited. When supplied, queue targets exclude this queue and knowledge-gap targets also require Human First or Copilot channels.
Optional channel filter for available_endpoints. Accepted keys: call, whatsapp, facebook, instagram, sms, email. Aliases: phone/voice -> call, messenger -> facebook, ig -> instagram.