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
- The client requests access from your backend. Your backend authenticates the caller and decides which license and limits to use.
- The backend calls
POST https://api.shen.ai/v1/tokenwith its Public API credential and receives a token and an expiry time. Use/v1/tokensto issue a batch. - 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.