Release the custom domain
curl --request DELETE \
--url https://app.trustivan.com/api/v1/settings/brand/domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand/domain"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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"
}Release the custom domain
Unmaps the organization’s custom domain at once, so it stops serving this organization. Needs no entitlement.
DELETE
/
settings
/
brand
/
domain
Release the custom domain
curl --request DELETE \
--url https://app.trustivan.com/api/v1/settings/brand/domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand/domain"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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"
}Authorizations
Response
Released.