Nearglass

A new secret key for your tenant (at most 4; revoke_others rotates)

With `revoke_others` the new key is the only one: every other key, the one this call was made with included, stops at once, and so does every console session opened with one. The key is shown once. The default tenant's keys are the environment's (409 `default_tenant`).

POST
/v1/tenant/secret-keys

With revoke_others the new key is the only one: every other key, the one this call was made with included, stops at once, and so does every console session opened with one. The key is shown once. The default tenant's keys are the environment's (409 default_tenant).

Authorization

secretKey
headerAuthorizationBearer <token>

sk_...

Request Body

application/json
  1. body
revoke_others?boolean
Defaultfalse

Response Body

the key, once

application/json
  1. response
secret_key?string

shown once; only its SHA-256 is kept

hint?string

its first characters, as GET /v1/tenant lists them

created_at?string
Formatdate-time
Example Request
curl -X POST 'https://api.nearglass.com/v1/tenant/secret-keys' \  -H 'Content-Type: application/json' \  -d '{  "revoke_others": false}'
Example Response
{  "secret_key": "string",  "hint": "string",  "created_at": "2019-08-24T14:15:22Z"}