Textlocal Logo

API Documentation

Validate a One Time Password

This command is used in conjunction with the otp_send API call

Resource URL

https://api.txtlocal.com/otp_challenge/

Sample Request

Sorry, we do not have an example for POST in the language you have chosen.

Sorry, we do not have an example for GET in the language you have chosen.

Sorry, we do not have an example for Class in the language you have chosen.

Parameters

numbers The telephone number that you wish to validate the code against
code The code that the user has submitted after receiving the code
Login Parameters (Additional Information)
apiKey You can create these in your Messenger Control Panel (click here) for each application, and limit the usage of them by host IP Address.

Sample Response

Sorry, we do not have a sample response for JSON.

Sorry, we do not have a sample response for XML.

Errors

Error Codes
5 No code has been given.
51 No valid numbers specified (failed validation).