Skip to main content

Get User Details

This API returns the masked mobile number and email address associated with a user. It is typically used before sending an OTP, so the UI can show the user which contact details the OTP will be sent to (e.g., "OTP sent to XXXXXX9999").

🛣️Path Parameters

ParameterTypeRequiredDescriptionExample
user_idstringYesUnique Client code (UCC) assigned to the useruser123

🔑Header Parameters

HeaderTypeRequiredDescriptionExample
api_keystringYesThe API key provided for authentication and authorization.api_key
x-api-keystringYesThe x-api-key used for identifying the requesting client application.x-api-key

🟢Success Response - 200 Ok

If the user details are fetched successfully, the response will contain

FieldTypeDescriptionExample
statusbooleanStatus of the API call. True for success, False for failure.true
resultobjectAn object containing the user details.{"mobile": "1234567890", "email": "user@xyz.com"}

📑Result Object Structure

FieldTypeDescriptionExample
mobilestringUser's registered mobile number partially masked"XXXXXX9999"
emailstringUser's registered email address partially masked"ap****@test.com"