Ubupay Documentation
  1. Authentication
Ubupay Documentation
  • Overview
    • Introduction
    • Getting started
  • Agent API Documentation
    • Introduction
    • Authentication
      • Agent authentication
        POST
      • OTP Request
        POST
      • OTP Verification
        POST
      • Password reset
        POST
    • Profile management
      • Create agent business profile
      • Update agent business profile
      • Retrieve agent business profile
      • Agent profile
    • Transactions
      • Transfers list
      • Transactions status amount
      • Transactions status count
      • Update transaction status
  1. Authentication

OTP Verification

POST
/authentication/agent/otp/verification
This endpoint is to verify the OTP you received after the OTP request call.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/authentication/agent/otp/verification' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "tinganjeff90@gmail.com",
    "otp_type": "PASSWORD_RESET",
    "otp": "080024"
}'
Response Response Example
{
    "status": "error",
    "message": "Invalid verification attempt"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
email
string 
required
otp_type
string 
required
otp
string 
required
The OTP code you received in email
Examples

Responses

🟢200Success
application/json
Body
status
string 
required
message
string 
required
Previous
OTP Request
Next
Password reset
Built with