List tenants
GET
/v1/system/tenants
const url = 'https://example.com/v1/system/tenants?limit=25';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://example.com/v1/system/tenants?limit=25' \ --header 'Authorization: Bearer <token>'Newest first; purged tenants are left out. Takes system:tenants. Never a tenant’s content.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The tenants.
Media typeapplication/json
object
Example
{ "data": [ { "state": "active" } ]}A limit out of range, or a cursor this route did not give.
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}A tenant’s key or session (system-principal-required), or a system key without system:tenants (system-scope-missing).
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
Media typeapplication/json
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
POST /v1/system/tenants: Create a tenantGET /v1/system/tenants/{tenantId}: Read a tenantPATCH /v1/system/tenants/{tenantId}: Rename a tenantPOST /v1/system/tenants/{tenantId}/close: Close a tenant- Kindgi 0.3.0
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
system-principal-required - Error code
system-scope-missing - Every error code