Welcome to the TezIndia WhatsApp API documentation!.
Parameter | Type | Required | Description |
---|---|---|---|
appkey | string | Yes | Your API app key. |
authkey | string | Yes | Your API authentication key. |
to | string | Yes | The recipient's WhatsApp number (with country code). |
message | string | Conditional | Text message to send. Required if no template is used. |
file | string | No | URL of the file to be sent (PDF, images, etc.). |
template_id | string | Conditional | Required if sending a template message. |
variables | object | No | Key-value pairs to replace variables in the template. |
https://wa.tezindia.in/sendMessage.php?appkey=yourAppKey&authkey=yourAuthKey&to=919876543210&message=Hello+World
https://wa.tezindia.in/sendMessage.php?appkey=yourAppKey&authkey=yourAuthKey&to=919876543210&message=Please+check+the+file&file=https://example.com/sample.pdf
https://wa.tezindia.in/sendMessage.php?appkey=yourAppKey&authkey=yourAuthKey&to=919876543210&template_id=yourTemplateId&variables={"{variableKey1}":"John","{variableKey2}":"replaceable value"}
Upon a successful request, the API will return a JSON object with the status of the message. Below is an example response:
{ "message_status": "Success", "data": { "from": "SENDER_NUMBER", "to": "RECEIVER_NUMBER", "status_code": 200 } }
If the request fails, you'll receive an error message with details:
{ "message_status": "Failed", "error": "Invalid parameters provided" }
If you encounter any issues or need further assistance, feel free to reach out to our support team at +91 7083044400 .