Nearglass

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

Publishable keys are public by design (pages carry them) and are listed in `GET /v1/tenant`. With `revoke_others` the new key is the only one: pages with an old key are refused new seats (401), and seats already held keep working (a seat id is its own bearer). The default tenant's keys are the environment's (409 `default_tenant`).

POST
/v1/tenant/publishable-keys

Publishable keys are public by design (pages carry them) and are listed in GET /v1/tenant. With revoke_others the new key is the only one: pages with an old key are refused new seats (401), and seats already held keep working (a seat id is its own bearer). 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 new key, and all the tenant's publishable keys now

application/json
  1. response
publishable_key?string
publishable_keys?array<string>
Example Request
curl -X POST 'https://api.nearglass.com/v1/tenant/publishable-keys' \  -H 'Content-Type: application/json' \  -d '{  "revoke_others": false}'
Example Response
{  "publishable_key": "string",  "publishable_keys": [    "string"  ]}