Messages

Get message history

Messages in the workspace created in a date range (from start_date 00:00 IST up to, not including, end_date), 200 per page, oldest first, whatever sent them (API, dashboard, campaigns). status is always 0: success is message: Success with total. Success without total means the whatsapp_client ID is not in the workspace. Pagination needs a JSON body with page as a number. The JSON body is served with Content-Type: text/html; parse it as JSON whatever the header says.

post/report/

Request

  • Base URL: https://wbiztool.com/api/v1
  • URL: https://wbiztool.com/api/v1/report/
  • Auth: none required

Request body

client_idinteger required

Your API Client ID from Settings → API keys.

api_keystring required

One of your API keys from the same page. Keep it secret.

start_datestring required

First day, DD-MM-YYYY (midnight IST).

end_datestring required

End of the range, DD-MM-YYYY. This day itself is not included.

whatsapp_clientinteger

ID of the WhatsApp number (or Telegram account) to send from, shown as "ID …" on the number's card on WhatsApp numbers in the dashboard.

pageinteger

200 messages per page. Only works as a JSON number; as a form field or string the response has total but an empty history.

Example request

{
  "client_id": 12345,
  "api_key": "YOUR_API_KEY",
  "start_date": "01-09-2026",
  "end_date": "08-09-2026",
  "whatsapp_client": 678
}

Response

History, or an error with status: 0 and an empty history (Error for missing or badly formatted dates, an invalid JSON body or a non-POST request; Auth Error; Demo Account can not access apis).

messagestring required

Success (with total) when the request worked.

status0 required

Always 0, even on success.

totalinteger

Messages in the range across all pages. Only on success.

Changes

No recorded changes to this operation across all 1 revision of this API.