Skip to content
Open in

How to get a Secret Key ​

The Secret key authorizes direct calls to the Topol API: pass it as the X-Secret-Key request header.

To get your Secret key:

  1. Log into your Topol Account and open the API Tokens tab.
  2. Select your API token and open its API Keys tab.
  3. Copy the Secret key.

Secret keys start with sk_. On api.topol.io, a key issued before the prefix existed works with or without it, so an integration that sends it without the prefix needs no change. When you sign nonces, hash the key with the sk_ prefix.

API token detail with the Secret key in the API Keys tab

WARNING

Keep the Secret key secure. It can only be viewed once, and it must never appear in client-side code.

One use for the Secret key is a POST request to the Convert JSON Template to HTML API, which returns the HTML for a template with specific settings such as a chosen language mutation.

In Email Editor v4, your backend also uses the Secret key to sign short-lived nonces for Nonce Authentication.