API key
How do I get my API key?
Our API is a feature exclusive to our PREMIUM and PLATINUM users. If you are a BASIC user and wish to benefit from this feature, please upgrade.
Go to the Settings page of your account and click on API Keys on the left hand side.
Click on NEW API KEY.

In the window that opens, select the rights for this API key.

Once you have selected the desired options, click CREATE API KEY to finish the process.
Where can I find my public key and secret key?
Go to the Settings page of your account and click on API Keys on the left hand side.
Click on your API key.
In the window that opens, you have access to your public key and your secret key. You will need both to communicate with the API.

Access rights
Each API key only gives access to the methods allowed by its rights. Each method page specifies the right it requires.
- commons: read your account, folders and publications information (
getAccountInfos,fetchAccountBooks,getBookInfos,fetchBookTocs,fetchBookComments…). - publish: publish documents and new revisions, update, activate, deactivate and delete publications.
- subscribers_read: read subscribers and their DRMs, and manage subscriber sessions.
- subscribers_write: create, update, activate and deactivate subscribers, and add, update or revoke their DRMs.
- subscribers_delete: delete subscribers.
Best practices
- Grant each API key only the rights it needs. For example, a key used to display your publications on your website only needs commons.
- Use a different API key for each application, so that you can replace one without affecting the others.
- Keep your secret key on your server: never put it in client-side code and never commit it to a code repository. Store it in an environment variable or a secrets manager instead.
- If a secret key may have been exposed, create a new API key and stop using the compromised one.