Skip to content
Ten Digit

Getting started

Authentication

Pass your License Number and API Key with every request.

Every request must include your License Number and API Key. Pass them as query parameters (or in the body of a POST), or as headers.

Query parameters

LicenseNumberstringrequiredYour license number, shown on the Developer API page.
APIKeystringrequiredYour API key, shown on the Developer API page.
Example · text
https://console.tendigit.in/api/v1/ext/account-validity?LicenseNumber=YOUR_LICENSE&APIKey=YOUR_API_KEY

Headers

If you would rather keep credentials out of the URL, send them as headers instead:

http
X-License-Number: YOUR_LICENSE
X-API-Key: YOUR_API_KEY

Keep the key secret

Anyone with your API key can send messages from your WhatsApp number and spend your wallet balance. Never put it in client-side code or a public repository. If it leaks, use Re-generate API key on the Developer API page; the old key stops working at once.

Authentication errors

401 API_AUTH_REQUIREDThe license number or API key was not sent.
401 API_AUTH_INVALIDThe license number or API key is wrong.
403 ACCOUNT_INACTIVEThe account is suspended or expired. Renew the plan to continue.