The hosted SDK is in early access. Details on this page may change before it’s generally available.
- 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 exampleapp.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
Passhosted.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.
getToken fails, the editor keeps working for editing and saving. Uploads, test emails and AI wait until it gets a token again.
