Resolve helpdesk
curl --request GET \
--url https://plugins-api.talqui.chat/helpdesk/v1/public/resolveimport requests
url = "https://plugins-api.talqui.chat/helpdesk/v1/public/resolve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://plugins-api.talqui.chat/helpdesk/v1/public/resolve', 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://plugins-api.talqui.chat/helpdesk/v1/public/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://plugins-api.talqui.chat/helpdesk/v1/public/resolve"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://plugins-api.talqui.chat/helpdesk/v1/public/resolve")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugins-api.talqui.chat/helpdesk/v1/public/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"helpdesk": {
"helpdeskHostnames": [
"<string>"
],
"helpdeskID": "<string>",
"helpdeskLocale": "<string>",
"helpdeskName": "<string>",
"helpdeskSlug": "<string>",
"helpdeskStatus": "draft",
"helpdeskSupport": {
"chatEnabled": true,
"emailAddress": "<string>",
"websiteUrl": "<string>"
},
"helpdeskTheme": {
"colorHeaderBackground": "<string>",
"colorLoading": "<string>",
"colorPrimary": "<string>",
"faviconUrl": "<string>",
"headerTitle": "<string>",
"logoUrl": "<string>"
}
}
}{
"errors": [
{
"error": "MissingHelpdeskHostnameError",
"error_code": 1106,
"message": "The X-Helpdesk-Host header is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "HelpdeskNotFoundError",
"error_code": 1107,
"message": "No help center answers on this address.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Public
Resolve helpdesk
Turns the hostname the visitor arrived on into the help center that answers for it, with its theme and support channels — the payload every SSR render starts from.
The hostname comes from X-Helpdesk-Host or, for this route only, from
?hostname=. Resolution and its Redis cache live in the middleware; this
handler only projects the result.
GET
/
v1
/
public
/
resolve
Resolve helpdesk
curl --request GET \
--url https://plugins-api.talqui.chat/helpdesk/v1/public/resolveimport requests
url = "https://plugins-api.talqui.chat/helpdesk/v1/public/resolve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://plugins-api.talqui.chat/helpdesk/v1/public/resolve', 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://plugins-api.talqui.chat/helpdesk/v1/public/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://plugins-api.talqui.chat/helpdesk/v1/public/resolve"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://plugins-api.talqui.chat/helpdesk/v1/public/resolve")
.asString();require 'uri'
require 'net/http'
url = URI("https://plugins-api.talqui.chat/helpdesk/v1/public/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"helpdesk": {
"helpdeskHostnames": [
"<string>"
],
"helpdeskID": "<string>",
"helpdeskLocale": "<string>",
"helpdeskName": "<string>",
"helpdeskSlug": "<string>",
"helpdeskStatus": "draft",
"helpdeskSupport": {
"chatEnabled": true,
"emailAddress": "<string>",
"websiteUrl": "<string>"
},
"helpdeskTheme": {
"colorHeaderBackground": "<string>",
"colorLoading": "<string>",
"colorPrimary": "<string>",
"faviconUrl": "<string>",
"headerTitle": "<string>",
"logoUrl": "<string>"
}
}
}{
"errors": [
{
"error": "MissingHelpdeskHostnameError",
"error_code": 1106,
"message": "The X-Helpdesk-Host header is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "HelpdeskNotFoundError",
"error_code": 1107,
"message": "No help center answers on this address.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}⌘I