POST
/
auth
/
user-auth
/
verify-otp
Verify OTP
curl --request POST \
  --url https://external.dev.onboardpay.co/auth/user-auth/verify-otp \
  --header 'Content-Type: application/json' \
  --header 'x-signature: <api-key>' \
  --data '{
  "authSessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "otp": "<string>"
}'
{
  "userId": "<string>",
  "accessToken": {
    "token": "<string>",
    "expiry": "2023-11-07T05:31:56Z"
  },
  "refreshToken": {
    "token": "<string>",
    "expiry": "2023-11-07T05:31:56Z"
  }
}
Verifies the OTP provided by a user for authentication during sign-in or sign-up.
This endpoint is specifically for user authentication (logging in or signing up).Do not confuse it with the 2FA OTP endpoint, which generates OTPs for verifying sensitive account actions (e.g., updating payment methods).

Authorizations

x-signature
string
header
required

Body

application/json

Response

Success

The response is of type object.