Retrieve Domains
curl --request GET \
--url https://api.lilt.com/v3/domains \
--header 'Authorization: Basic <encoded-value>' \
--header 'key: <key>'import requests
url = "https://api.lilt.com/v3/domains"
headers = {
"key": "<key>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {key: '<key>', Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lilt.com/v3/domains', 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://api.lilt.com/v3/domains",
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: Basic <encoded-value>",
"key: <key>"
],
]);
$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://api.lilt.com/v3/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("key", "<key>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lilt.com/v3/domains")
.header("key", "<key>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lilt.com/v3/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["key"] = '<key>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"items": [
{
"domainId": 123,
"domainName": "Example Domain",
"models": [
{
"id": 456,
"name": "Example Model",
"provider": "Google Translate",
"status": "Active",
"srcLang": "en",
"trgLang": "es",
"srcLocale": "US",
"trgLocale": "ES"
}
],
"filterConfigs": [
{
"id": 789,
"isDefault": true,
"filterConfig": "Example Filter Config",
"filterName": "Example Filter",
"configName": "Example Config Name",
"configDescription": "Example Config Description",
"subfilters": "Example Subfilters",
"segmentationConfigSetting": "SENTENCE",
"srx": "Example SRX",
"segmentationConfigName": "Example Segmentation Config",
"domains": [
{
"id": 101,
"name": "Example Domain Ref"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-02T00:00:00Z",
"default": true
}
],
"domainMetadata": [
{
"id": 131,
"key": "Example Key",
"value": "Example Value"
}
]
}
],
"size": 1
}{
"message": "Internal server error."
}Domains
Retrieve Domains
Retrieve a list of Domains associated with the Organization’s API key.
Each Domain contains potentially 4 Arrays related to the Domain these are as follows:
- models - the list of models associated with the Domain
- filterConfigs - the list of filterConfigs associated with the Domain
- domainMetadata - the list of Domain specific options that have been configured for this domain.
GET
/
v3
/
domains
Retrieve Domains
curl --request GET \
--url https://api.lilt.com/v3/domains \
--header 'Authorization: Basic <encoded-value>' \
--header 'key: <key>'import requests
url = "https://api.lilt.com/v3/domains"
headers = {
"key": "<key>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {key: '<key>', Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lilt.com/v3/domains', 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://api.lilt.com/v3/domains",
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: Basic <encoded-value>",
"key: <key>"
],
]);
$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://api.lilt.com/v3/domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("key", "<key>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lilt.com/v3/domains")
.header("key", "<key>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lilt.com/v3/domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["key"] = '<key>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"items": [
{
"domainId": 123,
"domainName": "Example Domain",
"models": [
{
"id": 456,
"name": "Example Model",
"provider": "Google Translate",
"status": "Active",
"srcLang": "en",
"trgLang": "es",
"srcLocale": "US",
"trgLocale": "ES"
}
],
"filterConfigs": [
{
"id": 789,
"isDefault": true,
"filterConfig": "Example Filter Config",
"filterName": "Example Filter",
"configName": "Example Config Name",
"configDescription": "Example Config Description",
"subfilters": "Example Subfilters",
"segmentationConfigSetting": "SENTENCE",
"srx": "Example SRX",
"segmentationConfigName": "Example Segmentation Config",
"domains": [
{
"id": 101,
"name": "Example Domain Ref"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-02T00:00:00Z",
"default": true
}
],
"domainMetadata": [
{
"id": 131,
"key": "Example Key",
"value": "Example Value"
}
]
}
],
"size": 1
}{
"message": "Internal server error."
}Authorizations
BasicAuthApiKeyAuth
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
the ApiKey used to authenticate with LILT, used to look up the Organization's domain information.
Response
OK
The list of domains in the response.
Show child attributes
Show child attributes
Example:
[
{
"domainId": 123,
"domainName": "Example Domain",
"models": [
{
"id": 456,
"name": "Example Model",
"provider": "Google Translate",
"status": "Active",
"srcLang": "en",
"trgLang": "es",
"srcLocale": "US",
"trgLocale": "ES"
}
],
"filterConfigs": [
{
"id": 789,
"isDefault": true,
"filterConfig": "Example Filter Config",
"filterName": "Example Filter",
"configName": "Example Config Name",
"configDescription": "Example Config Description",
"subfilters": "Example Subfilters",
"segmentationConfigSetting": "SENTENCE",
"srx": "Example SRX",
"segmentationConfigName": "Example Segmentation Config",
"domains": [{ "id": 101, "name": "Example Domain Ref" }],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-02T00:00:00Z",
"default": true
}
],
"domainMetadata": [
{
"id": 131,
"key": "Example Key",
"value": "Example Value"
}
]
}
]
The total number of domains in the list.
Example:
1
Was this page helpful?
⌘I

