Skip to content

Get Tenant

GET
/tenant/{tenantId}
curl --request GET \
--url https://api.exolink.cloud/tenant/example \
--header 'Authorization: Bearer <token>'

Retrieve tenant information

tenantId
required
string

Tenant domain prefix

Tenant information

Media typeapplication/json
object
id

Unique identifier for the tenant

integer
name

Tenant display name

string
domainPrefix

Unique domain prefix for the tenant (used in URLs and subdomains)

string
connectUrl

WebSocket connection URL for IoT/OCPP

string
customDomains

WebSocket URLs of every fully configured (COMPLETE) custom domain

Array<string>
createdAt

When the tenant was created

string format: date-time
updatedAt

When the tenant was last updated

string format: date-time
deletedAt

When the tenant was deleted (null if active)

string format: date-time
nullable

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

Media typeapplication/json

Error response. Some rejections carry only message.

object
message
required

Error message

string
errorCode

Error code

string
Allowed values: ERR_API_BAD_REQUEST ERR_API_NOT_AUTHORIZED ERR_API_PAYMENT_REQUIRED ERR_API_FORBIDDEN ERR_API_RESOURCE_NOT_FOUND ERR_API_RESOURCE_IN_USE ERR_API_RESOURCE_ALREADY_EXISTS ERR_API_UNEXPECTED_STATE ERR_API_CONTENT_TOO_LARGE ERR_API_VALIDATION_FAILED ERR_API_VERIFICATION_FAILED ERR_API_NO_TENANT ERR_API_INVALID_INVITATION ERR_API_USER_DISABLED ERR_API_FAILED_DEPENDENCY ERR_EXOLINK_GENERIC
details

Failed validations, for requests checked against a schema

Array<object>
object
path

Path of the invalid field

string
message
string
code
string

Example

{
"message": "Not authorized",
"errorCode": "ERR_API_NOT_AUTHORIZED"
}

The caller may not perform this action

Media typeapplication/json

Error response. Some rejections carry only message.

object
message
required

Error message

string
errorCode

Error code

string
Allowed values: ERR_API_BAD_REQUEST ERR_API_NOT_AUTHORIZED ERR_API_PAYMENT_REQUIRED ERR_API_FORBIDDEN ERR_API_RESOURCE_NOT_FOUND ERR_API_RESOURCE_IN_USE ERR_API_RESOURCE_ALREADY_EXISTS ERR_API_UNEXPECTED_STATE ERR_API_CONTENT_TOO_LARGE ERR_API_VALIDATION_FAILED ERR_API_VERIFICATION_FAILED ERR_API_NO_TENANT ERR_API_INVALID_INVITATION ERR_API_USER_DISABLED ERR_API_FAILED_DEPENDENCY ERR_EXOLINK_GENERIC
details

Failed validations, for requests checked against a schema

Array<object>
object
path

Path of the invalid field

string
message
string
code
string

Example

{
"message": "Forbidden",
"errorCode": "ERR_API_FORBIDDEN"
}