Skip to main content

Email a recipient a one-time code

POST 

/secret/:key/code

For a recipient who cannot sign in to this server. Needs RECIPIENT_EMAIL_CODE from GET /config. A six-digit code, valid for 10 minutes, goes to email only if it is the secret's recipient and lies outside the server's allowed sign-in domains. A new code replaces the previous one; at most 3 are sent per secret in 10 minutes and 10 over its life. The answer is the same whether or not a code was sent. Both code routes take only Content-Type: application/json and answer 415 otherwise. /file/{key}/code is equivalent.

Request​

Responses​

A code was sent if the address may open the secret.