Create a signed link
To create a signed link:
- 
Prepare the token payload:
- 
Get your private key issued when creating the Embedding key.
 - 
Create a JWT payload with the following parameters:
- 
embedIDfrom the embedding entities list. - 
dlEmbedService: "doublecloud", the static service identifier. - 
iat, token issue time, in the UNIX timestamp format. - 
exp, token expiration time, in the UNIX timestamp format. The total token lifespan can't exceed10hours. - 
(optional)
paramsAdditional parameters:signed_param1: string | number. 
Example:
{ "embedId": "<your_embed_id>", "dlEmbedService": "doublecloud", "iat": number, // Time of token creation, UNIX timestamp, "exp": number, // Time of token expiration, UNIX timestamp. Total token lifespan can't exceed 10 hours. "params": { // Optional signed parameters "signed_param1": string | number, "signed_param2": string | number, ... }, } - 
 
 - 
 - 
Sign your token payload using your private key. Use the
PS256algorithm.Warning
Use the private key value starting from the
-----BEGIN RSA PRIVATE KEY-----line. - 
Compose the embedding URL:
https://app.double.cloud/embeds/chart?__dl_embed_token=<TOKEN>