Api referenceEndpointsAdmin
A tenant's API keys (instance admin)
GET
Every key of the tenant, revoked ones included, oldest first. current is true only for the
key making the call, so only in a listing of the caller's own tenant.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
tenant_id*stringThe id of a tenant; any other value is a 404.
Format
uuidThe keys.
application/json- response
data*array<>curl -X GET 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/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 } ]}