v1

latestOpenAPI 3.0.22026-07-17255.6 KB

Generate and send an authentication code

Generate and send an authentication code

post/verify/init

Request body

targetstring email required

Actual target to verify. If target_type is email, should be a valid email address

target_type'email'

Type of target. Currently only email is supported

subjectstring

Subject line of the notification email

contentstring

HTML content for the notification email

expires_ininteger

In seconds, the duration of the authentication code

Example request

{
  "target": "john.doe@company.com",
  "target_type": "email",
  "subject": "Your NoPass.me Authorization Code",
  "content": "<h1>Hello 👋</h1>\\n\\n<p>Your authentication code is <b>%code%</b>.</p>\\n\\n<p>Stay safe on the internet!</p><p>The <a href=\"https://nopass.me\">NoPass.me</a> team</p>",
  "expires_in": 300
}

Response

Success Response

successboolean