Create a widget access token
Core APIs
Create a widget access token
Creates a Widget Access Token (WAT) for embedding the referral widget. The token is JWT-based and includes allowed origins for CORS validation.
Security:
- Tokens expire after 1 hour
- Origin must match configured allowed_widget_origins
POST
Create a widget access token
Authorizations
Tenant API key for authentication. Keys are scoped to specific environments (LIVE or SANDBOX). Obtain keys from the admin dashboard.
Body
application/json
User ID for the widget session