Claim a custom sign-in domain (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand/domain \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hostname": "security.example.com"
}
'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/domain"
payload = { "hostname": "security.example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({hostname: 'security.example.com'})
};
fetch('https://app.trustivan.com/api/v1/settings/brand/domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand/domain"
payload := strings.NewReader("{\n \"hostname\": \"security.example.com\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"entitled": true,
"default_product_name": "<string>",
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_url": "<string>",
"white_label": true,
"logo_url": "<string>",
"domain": {
"hostname": "<string>",
"status": "pending",
"record_name": "_domain-verification.security.example.com",
"record_value": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>"
},
"contrast": [
{
"pair": "<string>",
"ratio": 123,
"min": 123
}
],
"effective": {
"custom": true,
"product_name": "<string>",
"white_label": true,
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"primary_dark": "<string>",
"on_primary": "<string>",
"accent": "<string>",
"accent_dark": "<string>",
"on_accent": "<string>"
},
"support_email": "<string>",
"support_url": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Claim a custom sign-in domain (Enterprise)
Records the hostname, unverified, with a fresh token. Publish the
returned record_value as a TXT record at record_name; a job checks
every five minutes, or POST /settings/brand/domain/verify checks now.
The deployment’s own domain and its subdomains are refused. A claim
blocks nobody: only one organization can hold a hostname VERIFIED.
PUT
/
settings
/
brand
/
domain
Claim a custom sign-in domain (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand/domain \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hostname": "security.example.com"
}
'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/domain"
payload = { "hostname": "security.example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({hostname: 'security.example.com'})
};
fetch('https://app.trustivan.com/api/v1/settings/brand/domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand/domain"
payload := strings.NewReader("{\n \"hostname\": \"security.example.com\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"entitled": true,
"default_product_name": "<string>",
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_url": "<string>",
"white_label": true,
"logo_url": "<string>",
"domain": {
"hostname": "<string>",
"status": "pending",
"record_name": "_domain-verification.security.example.com",
"record_value": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>"
},
"contrast": [
{
"pair": "<string>",
"ratio": 123,
"min": 123
}
],
"effective": {
"custom": true,
"product_name": "<string>",
"white_label": true,
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"primary_dark": "<string>",
"on_primary": "<string>",
"accent": "<string>",
"accent_dark": "<string>",
"on_accent": "<string>"
},
"support_email": "<string>",
"support_url": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
Claimed.