Validate OTP

Lets you authenticate customer by validating the OTP sent to the customer through SMS or email and proceed with the necessary action such as redeeming points/coupons, and registering customer.

In Response, entity: true indicates the OTP validation is successful, and "entiry": false if the validation fails.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this API to authenticate a customer by validating the OTP sent through SMS or email.
After a successful validation, you can proceed with actions such as redeeming points or coupons or registering the customer.

In the response,

  • "entity": true indicates that OTP validation was successful.
  • "entity": false indicates that validation failed.

The API also supports rate limiting to prevent excessive validation attempts.

Configuration KeyDescriptionDefault Value
CONF_OTP_VALIDATE_RATE_LIMIT_ENABLEDEnables rate limiting for the API.false
CONF_OTP_VALIDATE_RATE_LIMIT_MINUTEDefines the time window (in minutes) during which rate limiting applies.15
CONF_OTP_VALIDATE_RATE_LIMIT_COUNTDefines the maximum number of API requests allowed.5

Example: With the default configuration, a user can call the OTP validation API up to 5 times within 15 minutes for the same entity.

For organisations created after mid-October 2025, rate limiting is enabled by default with the default configuration values.
To update the default values and enable the configuration for existing organisations, create a JIRA ticket with the Capillary Product Support team.

Body Params
string
enum
required

Specify MOBILE to validate OTP send to the registered mobile number, EMAIL to send the validation code to the registered email ID.

Allowed:
string
required

Specify the registered mobile number or email id of the customer based on the entityType passed.

string
required

Validation code received by the customer.

string
enum
required

Action to be performed on successful validation.

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json