Releasesv0.1.0
Api referenceEndpointsAdmin

One tenant (instance admin)

GET
/v1/admin/tenants/{tenant_id}

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

tenant_id*string

The id of a tenant; any other value is a 404.

Formatuuid

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The tenant.

application/json
  1. response
id*string
Formatuuid
name*string
admin*boolean

True for an instance admin tenant, whose keys reach the /v1/admin routes.

created_at*string
Formatdate-time
active_keys*integer

The tenant's keys that are not revoked.

curl -X GET 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer ohs_sk_...'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "admin": true,  "created_at": "2019-08-24T14:15:22Z",  "active_keys": 0}
Edit on GitHub