Getting Started with OTPLESS API

To kickstart your integration with the OTPLESS API and unlock the full potential of passwordless authentication, follow these initial steps:


Obtain API Credentials

Before you can make any API requests, you’ll need to obtain your unique clientId and clientSecret.

These credentials are vital for authenticating your API requests and ensuring secure access to our features. Register on our platform to get your credentials.


Authenticate Your Requests

With your credentials in hand, you’re ready to authenticate your API calls. Include your clientId and clientSecret whereever neccessary in all OTPLESS API requests.


Make Your First API Call

Once authenticated, you can start making API calls. Begin with a simple request to familiarize yourself with our API structure and response patterns. Here’s an example of a basic API call to our system:

curl --request POST \
  --url \
  --header 'Content-Type: application/json' \
  --header 'clientId: <api-key>' \
  --header 'clientSecret: <api-key>' \
  --data '{
  "phoneNumber": "919899038845",
  "otpLength": 6,
  "channel": "WHATSAPP",
  "expiry": 600

Understanding Response Codes

As you make requests, the OTPLESS API uses standard HTTP response codes to indicate the outcome:

  • 2xx codes signal successful operations.
  • 4xx codes indicate issues with the request, often related to user input or authentication.
  • 5xx codes point to server-side errors that need our attention.

For a detailed explanation of these codes and troubleshooting tips, visit our Error Codes section.

Need Help?

If you encounter any issues or have questions, our dedicated support team is ready to assist you. Reach out through our Support Channel for technical support, feedback, or any inquiries.