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 titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Optional idempotency/request correlation identifier.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “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" } ]}Headers
Section titled “Headers”Request identifier for troubleshooting.
Invalid or revoked API token.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Request identifier for troubleshooting.
Token scope/site/plan does not allow this request.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”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" }}Headers
Section titled “Headers”Request identifier for troubleshooting.
Request was throttled.
object
object
object
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Request identifier for troubleshooting.
Maximum requests allowed during current short window.
Remaining requests in current short window.
Unix timestamp when short window resets.