Modulify

Reveal the email key of a site

get_site_email_key

Reveals the email key of a site in plain text, with the API URL it goes with, creating the key when the site has none yet.

It is the server only credential the site's own server code sends with every email, injected as EMAIL_PRIVATE_KEY next to EMAIL_URL, and anyone holding it can send email as the site. The answer carries the key, the url it goes with and keyChangedAt.

The key is returned in full, so it lands in the conversation. The tool tells the client never to print it, never to put it in a page, a client component or a committed file, and never to send it anywhere you did not ask for. It also tells the client to reach for it only when you explicitly ask to see or copy your key, for example to send from a server of your own outside Modulify.

It is refused while the site's own EMAIL_URL or EMAIL_PRIVATE_KEY secret keeps Modulify email off. It is the only tool that returns the key, and credentials:reveal is unticked by default when you create a token. See The email key.

Inputs

Input Type Required Description
projectId string Yes The site id.