Skip to content

Reset Password

POST {api-url}/resetPassword?ns={community}

Use this endpoint to trigger a password reset. You must provide a valid OTP that the user received via /sendOTP. The platform will automatically generate a new password and dispatch it via SMS or Email based on the user’s notification preferences.

FieldTypeRequirementDescription
UsernameStringRequiredThe username or MSISDN of the account to reset.
IDNumberStringOptionalThe ID number of the user.
ReferenceStringOptionalA reference string to store against this action.
OTPStringRequiredThe One-Time PIN previously sent to the user.
MetadataStringOptionalAny other detail to store with this transaction.
{
"Username": "27820000000",
"IDNumber": "",
"Reference": "REF123",
"OTP": "602734",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/resetPassword?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Username":"27820000000","IDNumber":"","Reference":"REF123","OTP":"602734","Metadata":""}'