eBook Digital Product ID
This unique identifier lets Fermion know which eBook you want to embed. You can find this ID with the help of Step 1 below.
Fermion API Key
Used to authenticate your requests securely when generating the embed token. You can create or view your API key from the API Access section in your instructor dashboard sidebar.
Access to Your Website’s Codebase
You’ll need to add a small code snippet (iframe) to your website, so make sure you have editing access or a developer who can implement it.
1
Obtain the ebook digital product ID
Each ebook on fermion has a unique identifier. For example
After that, go to
You can find the ebook digital product ID in the URL.
6779080e80ec97e953a17971
. First, go to Manage features
tab on your instructor dashboard and enable Digital products

eBooks
inside Digital products
to create and upload an ebook if you haven’t. Learn more about Creating eBooks

2
Generate an Embed Token
You’ll need to generate a JWT (JSON Web Token) to authenticate the embed. Here’s how to create one using the The Important notes:
jsonwebtoken
package:payloadObject
must conform to the following zod schema:- Replace
FERMION_API_KEY
with your actual API key and provide a unique user ID for each viewer. - Make sure to set a validity on JWT token (recommended validity is 10h-20h)
Fermion uses the same zod schema as above internally to validate your JWT
payload.
3
Embed the ebook
Add this iframe to your website where you want to embed the ebook:This should embed your ebook and display it on your website.
Make sure you replace
acme.fermion.app
with your fermion school URL.