Template comparison across templates

Returns side-by-side metrics that compare a base template against one or more other templates over the same time window.

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired
gsTemplateIdGupshup identifier of the message template.tpl-1002StringRequired

Query parameters

KeyDescriptionValuesData TypeRequired/Optional
startStart of the reporting window, as a Unix timestamp in seconds.1720203204IntegerRequired
endEnd of the reporting window, as a Unix timestamp in seconds.1721088316IntegerRequired
templateListTemplate identifiers to compare.—ArrayRequired

Sample cURL — Template comparison across templates.

curl --request GET \
  --url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/template-analytics/metrics/tpl-1002/compare?start=1720203204&end=1721088316&templateList=<templateList>' \
  --header 'Authorization: Bearer <UT>' \
  --header 'Accept: application/json'

Sample success response (200)

{
  "status": "success",
  "data": {
    "data": [
      {
        "metric": "BLOCK_RATE",
        "order_by_relative_metric": [
          "6f414190-aaaa",
          "6f414190-bbbb"
        ],
        "type": "RELATIVE"
      },
      {
        "metric": "MESSAGE_SENDS",
        "number_values": [
          {
            "key": "6f414190-aaaa",
            "value": 12450
          },
          {
            "key": "6f414190-bbbb",
            "value": 9832
          }
        ],
        "type": "NUMBER_VALUES"
      },
      {
        "metric": "TOP_BLOCK_REASON",
        "string_values": [
          {
            "key": "6f414190-aaaa",
            "value": "NO_LONGER_NEEDED"
          },
          {
            "key": "6f414190-bbbb",
            "value": "SPAM"
          }
        ],
        "type": "STRING_VALUES"
      }
    ]
  }
}
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

string
required

Gupshup identifier of the message template.

Query Params
int64
required

Start of the reporting window, as a Unix timestamp in seconds.

int64
required

End of the reporting window, as a Unix timestamp in seconds.

templateList
array of strings
required

Template identifiers to compare.

templateList*
Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json