Disable button click analytics

This API endpoint enables or disables button click analytics for a specific template. Button click tracking allows you to monitor user interactions with buttons in your WhatsApp message templates. This endpoint provides granular control over which templates have button click analytics enabled.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request Parameters

KeyDescriptionValueTypeRequired/OptionalConstraints
AuthorizationAccess Token for the application{{PARTNER_APP_TOKEN}}StringRequiredShould be a valid Partner App Access Token
APP_IDApp ID to fetch the access token{{APP_ID}}StringRequiredThe ID should be a valid app ID of Gupshup
templateIdgs-template id of template{{TEMPLATE_ID}}StringRequired
disableflag to disable or enable button click analyticsTrue/FalseBooleanRequired

Sample Request

curl --location --request POST '{{BASE_URL}}/partner/app/{{APP_ID}}/template/analytics/buttonclick' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'templateId={{TEMPLATE_ID}}' \
--data-urlencode 'disable=false'

Sample Response

{
    "status": "success"
}

Status Codes

Status CodeResponseComment
Success
200{ "stauts": "sucess" }Successful response
Error
401{ "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" }
Path Params
string
required

Unique identifier of the app.

Form Data
string
required

gs-template id of template

boolean
required

flag to disable or enable button click analytics

Headers
string
required

Your app token, please refer Get access token api to get the token from partner documentation.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json