Skip to main content
The hosted SDK is in early access. Details on this page may change before it’s generally available.
The editor runs in your users’ browsers, so anything in it is public. That’s why there are two parts:
  • Secret keys stay on your server.
  • Tokens go to the browser. Each one names one of your users and lasts 10 minutes.

Secret keys

Test keys have low limits for test emails, AI and image storage. Use them while you build. If a secret key gets out, make a new one and delete the old one. Tokens made with the old key stop working when they run out.

Allowed domains

Tokens only work on the domains you list, for example app.yourcompany.com. The editor sends the page’s address with each call, and Email Love refuses calls from anywhere else.

Make a token

The response:

Give the editor its token

Pass hosted.getToken. The editor calls it when it starts and again before each token runs out. Return the token, or the response from your token endpoint as it is.
If getToken fails, the editor keeps working for editing and saving. Uploads, test emails and AI wait until it gets a token again.