Skip to main content
POST
/
me
/
authenticator
Generate TOTP authenticator
curl --request POST \
  --url https://api.wacht.dev/me/authenticator \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --cookie session_id= \
  --data email=jsmith@example.com
{
  "authenticator": {
    "id": "<string>",
    "secret": "<string>",
    "verified": true,
    "created_at": "2023-11-07T05:31:56Z"
  },
  "qr_code": "<string>"
}

Authorizations

session_id
string
cookie
required

Body

application/x-www-form-urlencoded
email
string<email>

Response

200 - application/json

Authenticator created

authenticator
object
qr_code
string

Base64 encoded QR code image