API Endpoint
{{WALINER_BASEURL}}v3/transmit_external_messages/NTAzY2QwN2QtYTI3Mi00ODQ5LTkzNDUtNGY2OGM4OTNlZTA5
Request Method: POST
Request Payload
Request Parameters
phone_number (array): An array of phone numbers to which the template message should be sent.
template (object): The template message details.
template (object): The template information.
name (string): The name of the template, e.g., "welcome_user_offer."
language (object): The language code of the template.
code (string): The language code, e.g., "en_US."
components (array): An array of components that make up the template.
type (string): The type of component, e.g., "body."
parameters (array): An array of parameters for the component.
type (string): The type of parameter, e.g., "text."
text (string): The actual text value of the parameter.
messaging_product (string): The messaging product, in this case, "whatsapp."
recipient_type (string): The type of recipient, e.g., "individual."
type (string): The type of message, e.g., "template."
Response
The response will indicate the success or failure of the message transmission. The structure of the response will depend on the API implementation.
Example Response
Error Handling
In case of errors, the response will include details about the error, and the status will be "failure."
Example Error Response
Notes
- Ensure that you have the correct `WALINER_BASEURL` in your API request.
- Verify that the template structure and parameters are correctly formatted.
- Handle errors based on the information provided in the error response.
Feel free to reach out to the API documentation team for any further assistance or clarification.
Transmit External Messages with Text and File
The "Transmit External Messages" API allows users to send messages via WhatsApp, including both text and file attachments. This API transmits a message with specified text content and an attached file to a given phone number. Below is a detailed explanation of how to use this extended functionality.
API Endpoint
{{WALINER_BASEURL}}v3/transmit_external_messages/template_msg/ZDY0MTM2NTYtN2Q0Ny00ZmYzLWI5NDktZmI2OTYyZWI4ZDk5
Request Method: POST
Request Payload
Request Parameters
phone_number (array): An array of phone numbers to which the message should be sent.
chat_text (string): The text content of the message.
doc_obj (object): The details of the attached file.
file_name (string): The name of the attached file.
file_obj (string): The content of the file encoded in base64. The format is specified using the data URI scheme.
Response
The response will indicate the success or failure of the message transmission. The structure of the response will depend on the API implementation.
Example Response
Error Handling
In case of errors, the response will include details about the error, and the status will be "failure."
Example Error Response
Notes
- Ensure that you have the correct `WALINER_BASEURL` in your API request.
- The `doc_obj` parameter should contain valid information about the attached file.
- Handle errors based on the information provided in the error response.
Feel free to reach out to the API documentation team for any further assistance or clarification.