Domain
Retrieve the loaded domain
Returns the domain specification the currently loaded model is using.
GET
/
domain
Retrieve the loaded domain
curl --request GET \
--url 'http://localhost:5005/domain?token='import requests
url = "http://localhost:5005/domain?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:5005/domain?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "5005",
CURLOPT_URL => "http://localhost:5005/domain?token=",
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 := "http://localhost:5005/domain?token="
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("http://localhost:5005/domain?token=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:5005/domain?token=")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"config": {
"store_entities_as_slots": false
},
"intents": [
{}
],
"entities": [
"person",
"location"
],
"slots": {},
"responses": {},
"actions": [
"action_greet",
"action_goodbye",
"action_listen"
]
}{
"version": "1.0.0",
"status": "failure",
"reason": "NotAuthenticated",
"message": "User is not authenticated to access resource.",
"code": 401
}{
"version": "1.0.0",
"status": "failure",
"reason": "NotAuthorized",
"message": "User has insufficient permission to access resource.",
"code": 403
}{
"version": "1.0.0",
"status": "failure",
"reason": "InvalidHeader",
"message": "Invalid header was provided with the request.",
"code": 406
}{
"version": "1.0.0",
"status": "ServerError",
"message": "An unexpected error occurred.",
"code": 500
}Authorizations
TokenAuthJWT
A plaintext token to secure your server, specified at startup in the argument --auth-token thisismysecret
Response
Domain was successfully retrieved.
The bot's domain.
Addional option
Show child attributes
Show child attributes
All intent names and properties
Show child attributes
Show child attributes
All entity names
Example:
["person", "location"]
Slot names and configuration
Show child attributes
Show child attributes
Bot response templates
Show child attributes
Show child attributes
Available action names
Example:
[
"action_greet",
"action_goodbye",
"action_listen"
]
⌘I
Retrieve the loaded domain
curl --request GET \
--url 'http://localhost:5005/domain?token='import requests
url = "http://localhost:5005/domain?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:5005/domain?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "5005",
CURLOPT_URL => "http://localhost:5005/domain?token=",
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 := "http://localhost:5005/domain?token="
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("http://localhost:5005/domain?token=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:5005/domain?token=")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"config": {
"store_entities_as_slots": false
},
"intents": [
{}
],
"entities": [
"person",
"location"
],
"slots": {},
"responses": {},
"actions": [
"action_greet",
"action_goodbye",
"action_listen"
]
}{
"version": "1.0.0",
"status": "failure",
"reason": "NotAuthenticated",
"message": "User is not authenticated to access resource.",
"code": 401
}{
"version": "1.0.0",
"status": "failure",
"reason": "NotAuthorized",
"message": "User has insufficient permission to access resource.",
"code": 403
}{
"version": "1.0.0",
"status": "failure",
"reason": "InvalidHeader",
"message": "Invalid header was provided with the request.",
"code": 406
}{
"version": "1.0.0",
"status": "ServerError",
"message": "An unexpected error occurred.",
"code": 500
}