Api referenceEndpointsAdmin
Every tenant of the instance, oldest first (instance admin)
GET
Only a key of an instance admin tenant may call the /v1/admin/tenants routes (403
otherwise). Each tenant with its count of active keys, paged like the users. See
docs/admin-api.md.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
cursor?stringThe next_cursor of the previous page.
limit?integerRange
1 <= value <= 1000Default
100One page of tenants.
application/json- response
data*array<>next_cursor*|Null on the last page.
curl -X GET 'http://localhost:8080/v1/admin/tenants' \ -H 'Authorization: Bearer ohs_sk_...'{ "next_cursor": "string", "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "admin": true, "created_at": "2019-08-24T14:15:22Z", "active_keys": 0 } ]}