Releasesv0.1.0
Api referenceEndpointsTenant

The tenant's API keys

GET
/v1/keys

Every key of the tenant, revoked ones included, newest first. Only the prefix of a key is stored in clear; the secret itself was shown once, when the key was created.

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 keys.

application/json
  1. response
data*array<>
curl -X GET 'http://localhost:8080/v1/keys' \  -H 'Authorization: Bearer ohs_sk_...'
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "prefix": "string",      "created_at": "2019-08-24T14:15:22Z",      "last_used_at": "2019-08-24T14:15:22Z",      "revoked_at": "2019-08-24T14:15:22Z",      "current": true    }  ]}
Edit on GitHub