Skip to Content
Admin APIAdmin API

Admin API

Use the Admin API to issue short-lived SDK tokens from your backend. Your client can then initialize the SDK without shipping a permanent SDK key. Each token belongs to a license. You can limit its lifetime, cap its measurements, or bind it to the first device that uses it.

Overview of the flow

  1. The client requests access from your backend. Your backend authenticates the caller and decides which license and limits to use.
  2. The backend calls POST https://api.shen.ai/v1/token with its Public API credential and receives a token and an expiry time. Use /v1/tokens to issue a batch.
  3. The backend sends the short-lived token to the client. The client passes it to SDK initialization in place of the SDK key.

Create a server credential, then issue your first token. The OpenAPI schema  lists the request and response fields.