Personal access token
Generate short-lived tokens from your backend so the real API key never ships inside your Unity build, eliminating credential exposure from client applications.
Your Backend ──holds──► Real API Key
│
│ POST /user/connect (server-side, never from client)
▼
Convai API ──returns──► apiAuthToken (1 hour)
│
│ delivered to Unity app at runtime
▼
Unity App ──uses──► apiAuthToken as credential
(real API key never in build)Token endpoints
Generate a token
POST https://api.convai.com/user/connectHeader
Value
Field
Description
Extend a token
Revoke a token
Integration with the Unity SDK
Token expiry and session length
Scenario
Behavior
Usage examples
Example 1: LMS platform with per-session tokens
Example 2: Shared kiosk with per-resident token rotation
Example 3: On-demand token refresh for long-running applications
Troubleshooting
Symptom
Likely cause
Fix
Next steps
Custom identity providerCustom credential providerLast updated
Was this helpful?