List accessible tenants for a site
const url = 'https://api.pomeloanalytics.com/v1/tenants?site_id=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.pomeloanalytics.com/v1/tenants?site_id=example' \ --header 'Authorization: Bearer <token>'Returns all active tenants accessible for the requested site_id.
Authorizations
Section intitulée « Authorizations »Parameters
Section intitulée « Parameters »Header Parameters
Section intitulée « Header Parameters »Optional idempotency/request correlation identifier.
Query Parameters
Section intitulée « Query Parameters »Responses
Section intitulée « Responses »OK
object
object
Stable tenant identifier.
Current routing slug from the tenant registry.
Current display name from the tenant registry.
Example
{ "items": [ { "status": "ACTIVE" } ]}Request identifier for troubleshooting.
Invalid or revoked API token.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Request identifier for troubleshooting.
Token scope/site/plan does not allow this request.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Request identifier for troubleshooting.
Request parameters are invalid, or the result is below the minimum reporting cohort (REPORTING_THRESHOLD, no details).
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Request identifier for troubleshooting.
Request was throttled.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Request identifier for troubleshooting.
Maximum requests allowed during current short window.
Remaining requests in current short window.
Unix timestamp when short window resets.