Get Tenant
const url = 'https://api.exolink.cloud/tenant/example';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 \ --header 'Authorization: Bearer <token>'Retrieve tenant information
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant domain prefix
Responses
Section titled “Responses”Tenant information
object
Unique identifier for the tenant
Tenant display name
Unique domain prefix for the tenant (used in URLs and subdomains)
WebSocket connection URL for IoT/OCPP
WebSocket URLs of every fully configured (COMPLETE) custom domain
When the tenant was created
When the tenant was last updated
When the tenant was deleted (null if active)
Example
{ "id": 1, "name": "My Company", "domainPrefix": "abc123", "connectUrl": "wss://abc123.broker.exolink.cloud/", "customDomains": [ "wss://chargers.company.com/", "wss://ocpp.company.com/" ]}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"}