Add Allowed Domain
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domain": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains"
payload = { "domain": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"domains": [
"<string>"
]
}Widget
Add Allowed Domain
Allow one more domain. Adding a domain already in the list changes nothing.
POST
/
api
/
v1
/
widget
/
allowed-domains
Add Allowed Domain
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"domain": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains"
payload = { "domain": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/widget/allowed-domains', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"domains": [
"<string>"
]
}