Confirm TOTP Setup

POST /api/v1/me/otp/confirm

Verifies the two_factor_auth_code and completes the TOTP setup

Headers

application/json

Body Required

Responses

  • 200 text/plain

    SMS setup successful

POST /api/v1/me/otp/confirm
curl \
 -X POST https://api.plannrcrm.com/api/v1/me/otp/confirm \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"two_factor_auth_code":"123789"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "two_factor_auth_code": "123789"
}
Response examples (200)
{"status":"TOTP 2fa setup complete"}}