WhatsApp Analytics REST API

WhatsApp Analytics REST API for SMSGatewayCenter APIs

WhatsApp Analytics REST API

Use the Analytics REST API to fetch WhatsApp message metrics over HTTP, including submitted, delivered, read, failed, pending, and rejected totals, a daily or monthly trend, and a grouped delivery breakdown. This endpoint accepts GET requests and returns JSON.

 

API Endpoint

https://unify.smsgateway.center/rest/wa/v1/analytics

 

Authentication

Send your account userid and password as request parameters, or send your account API key in the apikey request header. WhatsApp product access must be enabled on your account. Do not publish live usernames or passwords.

 

Actions

ActionDescriptionDefault date range
summaryReturns submitted, delivered, read, failed, pending, and rejected totals for the selected date range.Today
trendReturns time-series points per day or month for submitted, delivered, read, and failed messages.Today
deliveryReturns grouped delivery rows with requested, delivered, read, failed, not sent, and amount values.Today

 

ParameterRequiredDescriptionExample/Value
Authentication
useridYesYour SMSGatewayCenter account username. Required even when the apikey header is used.YourUsername
passwordYes*Your account password. Not required when the apikey header is used.**********
outputYesResponse format. Must be json.json
Optional Parameters
actionOptionalDefaults to summary. Allowed: summary, trend, delivery.summary
startOptionalStart date. Format YYYY-MM-DD. Defaults to today when omitted with end.2026-06-01
endOptionalEnd date. Format YYYY-MM-DD. Defaults to today when omitted with start. Maximum range is 365 days.2026-06-01
wabaNumberOptionalRestrict metrics to one WhatsApp Business Account number. Omit to include all WABA numbers on the account. Digits only, 5 to 15 characters.9170396xxxxx
reptypeOptionalUsed with action=trend. Allowed: day or month. Default day.day
groupByOptionalUsed with action=delivery. Allowed: billable, date, waNumber, country. Default billable.billable

 

Sample Request - Summary (cURL)
curl --location 'https://unify.smsgateway.center/rest/wa/v1/analytics?userid=YourUsername&password=xxxxx&output=json&action=summary&start=2026-06-01&end=2026-06-01'

 

Sample Request - Trend (cURL)
curl --location 'https://unify.smsgateway.center/rest/wa/v1/analytics?userid=YourUsername&password=xxxxx&output=json&action=trend&start=2026-05-25&end=2026-06-01&reptype=day&wabaNumber=9170396xxxxx'

 

Sample Request - Delivery (cURL)
curl --location --get 'https://unify.smsgateway.center/rest/wa/v1/analytics' \
--header 'apikey: YourApiKey' \
--data-urlencode 'userid=YourUsername' \
--data-urlencode 'output=json' \
--data-urlencode 'action=delivery' \
--data-urlencode 'start=2026-06-01' \
--data-urlencode 'end=2026-06-01' \
--data-urlencode 'groupBy=billable' \
--data-urlencode 'wabaNumber=9170396xxxxx'

 

Sample Success Response - Summary
{
  "status": "success",
  "analyticsList": {
    "action": "summary",
    "start": "2026-06-01",
    "end": "2026-06-01",
    "wabaNumber": "9170396xxxxx",
    "metrics": [
      { "label": "Submitted", "value": 1250 },
      { "label": "Delivered", "value": 980 },
      { "label": "Read", "value": 640 },
      { "label": "Failed", "value": 45 },
      { "label": "Pending", "value": 120 },
      { "label": "Rejected", "value": 15 }
    ]
  },
  "statusCode": "200",
  "reason": "success"
}

 

Sample Success Response - Trend
{
  "status": "success",
  "analyticsList": {
    "action": "trend",
    "start": "2026-05-25",
    "end": "2026-06-01",
    "reptype": "day",
    "wabaNumber": "9170396xxxxx",
    "points": [
      {
        "date": "2026-05-25",
        "dateLabel": "May 25",
        "submitted": 180,
        "delivered": 150,
        "read": 95,
        "failed": 8
      },
      {
        "date": "2026-05-26",
        "dateLabel": "May 26",
        "submitted": 210,
        "delivered": 175,
        "read": 110,
        "failed": 6
      }
    ]
  },
  "statusCode": "200",
  "reason": "success"
}

 

Sample Success Response - Delivery
{
  "status": "success",
  "analyticsList": {
    "action": "delivery",
    "start": "2026-06-01",
    "end": "2026-06-01",
    "groupBy": "billable",
    "wabaNumber": "9170396xxxxx",
    "rows": [
      {
        "label": "MARKETING",
        "billingModel": "MARKETING",
        "country": "India",
        "countryId": 91,
        "waNumber": "9170396xxxxx",
        "date": "2026-06-01",
        "requested": 500,
        "delivered": 420,
        "read": 280,
        "failed": 12,
        "notSent": 3,
        "amount": 45.5
      },
      {
        "label": "UTILITY",
        "billingModel": "UTILITY",
        "country": "India",
        "countryId": 91,
        "waNumber": "9170396xxxxx",
        "date": "2026-06-01",
        "requested": 750,
        "delivered": 700,
        "read": 360,
        "failed": 8,
        "notSent": 2,
        "amount": 32.25
      }
    ]
  },
  "statusCode": "200",
  "reason": "success"
}

 

Sample Error Response
{
  "status": "error",
  "analyticsList": [],
  "statusCode": "400",
  "reason": "Date range cannot exceed 365 days."
}

 

Notes

  • When both start and end are omitted, the API uses today's date.
  • Date ranges cannot exceed 365 days. Start date cannot be after end date.
  • When wabaNumber is sent, it must belong to the authenticated account.
  • analyticsList is an object. Its shape depends on the selected action.
  • Only GET is supported. Other HTTP methods return 405.
Testimonials

Why do Great Businesses Trust SMS Gateway Center?

We have tied up with other SMS providers also, but SMS GatewayCenter is quite good. Good Service from the team. We are very happy with the service be it accounts related or technical issue. We always get good response.

K

Kurlon IT

2022-08-04

We have an excellent experience with SMS Gateway Center. The services and support has been of very high standard.

I

INOX Air Products

2018-02-09

I’ve been using SMSGatewayCenter’s bulk SMS and WhatsApp services since early 2022 for my small business, and the experience has been fantastic. The platform is intuitive, and the message delivery is incredibly reliable, reaching my customers without fail. The 24/7 support team is quick to assist, and the cost-effectiveness is a big plus. It’s transformed how I connect with my audience, and I highly recommend it to other entrepreneurs! (Google Revirews)

S

Shalabh Arora

2025-04-11

We’ve been using your bulk SMS services for a few months, and the results have been phenomenal. The open rates and customer engagement have gone through the roof. Highly recommend for any business looking to scale fast! (Google Revirews)

R

Reflex

2025-04-11

I’m Vedanth Gowda, leading a finance business, and I’ve been leveraging SMSGatewayCenter’s bulk SMS and WhatsApp tools —absolutely transformative! The platform’s speed and precision in delivering financial alerts to my clients are unmatched, giving me a competitive edge. Samrat’s expertise in tailoring notification workflows for market updates was a standout, and the robust security features instilled trust. The affordable pricing and proactive support team make it a no-brainer. Perfect for finance pros aiming to elevate client trust and efficiency! (Google Revirews)

V

Vedanth Gowda

2025-04-18

From day one, the team at SMS GATEWAY CENTER guided us through setup, testing, and launching campaigns. Their support is A+. Whether you’re new to SMS marketing or experienced, they make it smooth. Thank you Aakash. (Google Revirews)

N

Naval Bhatnagar

2025-04-12

CTA for Unlock Real-Time Messaging – Integrate Today!

Unlock Real-Time Messaging – Integrate Today!

Try Our API in a Sandbox Environment Before Going Live!

Join Thousands of Developers – Try Our API Now!

Get in touchSign up