Releasesv0.1.0
Api referenceEndpointsTenant

The tenant of the calling key

GET
/v1/tenant

The tenant the key belongs to, whether it is the instance admin (the one tenant whose keys manage the providers, see /v1/admin/providers) and which key is calling.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

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 the instance admin tenant, whose keys manage the providers. The first tenant of an instance is the admin.

created_at*string
Formatdate-time
key*

The key making the call.

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