Charts
Generate Chart Share Token
Generate a signed JWT token for secure chart embedding with optional parameters and expiration
POST
This endpoint generates a JWT token for embedding a chart with a SharePolicy. The token can include custom parameters, expiration dates, and URL parameter permissions.
Parameters
Body Parameters
Share policy configuration to update before generating token
Response
Example
Usage Notes
- Prerequisites: A SharePolicy must exist for the chart before generating tokens. Use the “Create Chart Share Policy” endpoint first.
- Token Expiration: If no expiration is specified, the token will have a very long expiration (99999 days).
- Parameters: Parameters defined in the share policy will be passed as variables to the chart.
- URL Parameters: If
allow_paramsis true, additional parameters can be passed via URL query parameters and will override policy parameters. - Embedding: Use the returned URL in an iframe or directly link to it for chart embedding.
- Security: Always use HTTPS when sharing URLs containing access tokens.