Messages

SendImage Message

post

Send Message to WhatsApp Box

This endpoint allows you to send a custom message to a phone number.

Use this API if you are sure client has responded / send you message in less than 24 hours.


Request Body

  • token (string) - The token for authentication.

  • phone (string) - The phone number of the recipient.

  • message (string) - The message to be sent

  • buttons (array) - List of buttons

  • header (string) - Header - only applied if there are buttons

  • footer (string) - Header - only applied if there are buttons


Response

  • status (string) - The status of the message delivery.

  • message_id (integer) - The ID of the sent message.

  • message_wamid (string) - The WhatsApp message ID.

Note: A status code of 200 indicates a successful request.

Body
imagestring · binaryOptional
phonestringOptional
tokenstringOptional
Responses
200Success
post
POST /api/wpbox/sendmessage HTTP/1.1
Host: www.app.samwad.tech
Content-Type: multipart/form-data
Accept: */*
Content-Length: 40

{
  "image": "binary",
  "phone": "",
  "token": ""
}
200Success

No content

GetConversations

post

Send Message to WhatsApp Box

This endpoint allows you to send a custom message to a phone number.

Use this API if you are sure client has responded / send you message in less than 24 hours.


Request Body

  • token (string) - The token for authentication.

  • phone (string) - The phone number of the recipient.

  • message (string) - The message to be sent

  • buttons (array) - List of buttons

  • header (string) - Header - only applied if there are buttons

  • footer (string) - Header - only applied if there are buttons


Response

  • status (string) - The status of the message delivery.

  • message_id (integer) - The ID of the sent message.

  • message_wamid (string) - The WhatsApp message ID.

Note: A status code of 200 indicates a successful request.

Query parameters
mobile_apistringOptionalExample: true
Body
tokenstringOptional
Responses
200Success
post
POST /api/wpbox/getConversations/none HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "token": "{{token}}"
}
200Success

No content

GetMessages Copy

post

Send Message to WhatsApp Box

This endpoint allows you to send a custom message to a phone number.

Use this API if you are sure client has responded / send you message in less than 24 hours.


Request Body

  • token (string) - The token for authentication.

  • phone (string) - The phone number of the recipient.

  • message (string) - The message to be sent

  • buttons (array) - List of buttons

  • header (string) - Header - only applied if there are buttons

  • footer (string) - Header - only applied if there are buttons


Response

  • status (string) - The status of the message delivery.

  • message_id (integer) - The ID of the sent message.

  • message_wamid (string) - The WhatsApp message ID.

Note: A status code of 200 indicates a successful request.

Body
contact_idnumberOptionalExample: 1
tokenstringOptional
Responses
200Success
post
POST /api/wpbox/getMessages HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "contact_id": 1,
  "token": "{{token}}"
}
200Success

No content

SendMessagesViaContact

post

Send Message to WhatsApp Box

This endpoint allows you to send a custom message to a phone number.

Use this API if you are sure client has responded / send you message in less than 24 hours.


Request Body

  • token (string) - The token for authentication.

  • phone (string) - The phone number of the recipient.

  • message (string) - The message to be sent

  • buttons (array) - List of buttons

  • header (string) - Header - only applied if there are buttons

  • footer (string) - Header - only applied if there are buttons


Response

  • status (string) - The status of the message delivery.

  • message_id (integer) - The ID of the sent message.

  • message_wamid (string) - The WhatsApp message ID.

Note: A status code of 200 indicates a successful request.

Body
tokenstringOptional
Responses
200Success
post
POST /api/wpbox/sendMessagesViaContact HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "token": "{{token}}"
}
200Success

No content