Domain Info
curl --request GET \
--url https://{host}/Agent/Account/DomainInfo \
--header 'Referer: <referer>'import requests
url = "https://{host}/Agent/Account/DomainInfo"
headers = {"Referer": "<referer>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Referer: '<referer>'}};
fetch('https://{host}/Agent/Account/DomainInfo', 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://{host}/Agent/Account/DomainInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Referer: <referer>"
],
]);
$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://{host}/Agent/Account/DomainInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Referer", "<referer>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/Agent/Account/DomainInfo")
.header("Referer", "<referer>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/Agent/Account/DomainInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Referer"] = '<referer>'
response = http.request(request)
puts response.read_body{
"useEncryption": true,
"domain": "<string>",
"humanReadableName": "<string>",
"humanReadableDescription": "<string>"
}Accounts
Domain Info
Gets human-readable information about the domain of the server.
GET
/
Agent
/
Account
/
DomainInfo
Domain Info
curl --request GET \
--url https://{host}/Agent/Account/DomainInfo \
--header 'Referer: <referer>'import requests
url = "https://{host}/Agent/Account/DomainInfo"
headers = {"Referer": "<referer>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Referer: '<referer>'}};
fetch('https://{host}/Agent/Account/DomainInfo', 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://{host}/Agent/Account/DomainInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Referer: <referer>"
],
]);
$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://{host}/Agent/Account/DomainInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Referer", "<referer>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/Agent/Account/DomainInfo")
.header("Referer", "<referer>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/Agent/Account/DomainInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Referer"] = '<referer>'
response = http.request(request)
puts response.read_body{
"useEncryption": true,
"domain": "<string>",
"humanReadableName": "<string>",
"humanReadableDescription": "<string>"
}Overview
Gets human-readable information about the domain of the server. This resource is accessed using HTTP GET, so there is no payload sent to resource. The request can be made anonymously. No authentication is required. This resource is typically called in the beginning of an on-boarding process, where the user is given a choice to select service provider (i.e. domain).Authentication
No authentication required.Notes
This endpoint uses the request schema notation described in Pattern matching.Headers
Selects which language to use for human-readable strings returned.
Your application's HTTPS URL, for example https://app.example.com/. Include this header on every Agent API request, including backend calls, login, and account creation. Browser clients must use a referrer policy that sends the application origin. See /neuron-api/api-basics#required-referer-header.