List Domains
const url = 'https://api.exolink.cloud/tenant/example/domain';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.exolink.cloud/tenant/example/domain \ --header 'Authorization: Bearer <token>'Get the tenant’s custom domain configuration. A tenant may own many domains, so this always returns a list - an empty one when none are configured. Domains being removed are listed with state REMOVING.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant domain prefix
Responses
Section titled “Responses”Domain configurations
Custom domain configuration
object
Domain ID
Tenant ID
Custom domain name
Target of the CNAME record the domain has to point to
Whether the domain points to domainValue
Name of the DNS record validating the certificate
Value of the DNS record validating the certificate
Whether the certificate is validated
Domain verification and setup state
Example
[ { "domainName": "chargers.company.com", "domainValue": "abc123.broker.exolink.cloud", "state": "PREPARING" }]Missing, invalid or expired credentials
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Not authorized", "errorCode": "ERR_API_NOT_AUTHORIZED"}The caller may not perform this action
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Forbidden", "errorCode": "ERR_API_FORBIDDEN"}