Char has two authentication surfaces: dashboard APIs and embedded runtime ticket exchange.Documentation Index
Fetch the complete documentation index at: https://docs.usechar.com/llms.txt
Use this file to discover all available pages before exploring further.
1) Dashboard/API authentication
Authenticated dashboard and oRPC endpoints use bearer tokens:2) Embedded agent ticket exchange
Embedded auth uses publishable key ticket exchange:POST /api/auth/pk-ticket
The web component performs this exchange automatically. Most integrations do not call
/api/auth/pk-ticket directly.Error behavior
Common ticket-exchange failures:INVALID_BODY— missing or malformed request bodyINVALID_KEY— key has invalid format, is not found, or has been revokedORIGIN_NOT_ALLOWED— request origin does not match the key’sallowed_origins- Token verification errors (for invalid/expired
id_token)
Security best practices
- Restrict publishable keys to known origins
- Pass
idTokenwithconnect()rather than DOM attributes - Rotate and revoke publishable keys from dashboard settings

