Category / Section
How to generate a new embed secret key for a site using API?
Published:
Using the Bold BI REST API, generate a new Embed secret key for a particular site instead of manually generating one in the Bold BI server when the user has admin access to the site settings or has access to the Embed settings page. Follow the below steps to generate a new Embed secret key using the REST API.
Steps to generate a new Embed secret key:
- For authorization purposes, set the header Authorization with bearer <token> and the following reference URL to send the request to the Bold BI server.
https://{yourdomain}/bi/api/site/<site_identifier>/v5.0/settings/embed-secret/generate
For example:
http://localhost:53623/bi/api/site/site1/v5.0/settings/embed-secret/generate
2. Once the request is sent, if the user has admin access to the site settings or the user has access to the Embed settings page, a new Embed secret key will be generated. Save the newly generated Embed secret key and use it in an embedded application.
Note: This API is to generate a new Embed secret key for a Bold BI site. This is not applicable to generate one at UMS (Bold ID) level.
Related links: