Parameters
The ID of the project containing the chart
The ID of the chart
Body Parameters
Share policy configuration to update before generating token
Token expiration date and time in ISO 8601 format (e.g., “2024-12-31T23:59:59Z”)
Response
The generated JWT access token for chart access
The complete embeddable URL with the access token included
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_params
is 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.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Token expiration date and time for the chart