Mint an embed token
Mint a short-lived token for one end user of your embedded analyst. Call this from your server — the API key must never reach the browser; only the returned token does. The email you send becomes the ClarityQ identity, so send only addresses your application has authenticated.
Authorizations
API key obtained from the ClarityQ dashboard.
Path Parameters
Body
The end user's email — this IS the identity. It becomes an ordinary ClarityQ user, owning that address's conversation history. Lower-cased before use. Send only addresses your application has authenticated.
^[^@\s]+@[^@\s]+\.[^@\s]+$"jane@acme.com"
Display name. Falls back to the email.
"Jane Doe"
Token lifetime in seconds. Tokens cannot be revoked, so this is the exposure window if one leaks — prefer the shortest your refresh handling can live with. Below 300 the refresh warning leaves your server little time to mint a replacement.
1 <= x <= 86400