post https://partner.gupshup.io/partner/app//template/analytics
Use this API to confirm template analytics on Meta.
Request Parameters
| Key | Description | Value | Type | Required/Optional | Constraints |
|---|---|---|---|---|---|
| Authorization | Access Token for the application | {{PARTNER_APP_TOKEN}} | String | Required | Should be a valid Partner App Access Token |
| APP_ID | App ID to fetch the access token | {{APP_ID}} | String | Required | The ID should be a valid app ID of Gupshup |
| enable | Flag to enable template analytics setting | True/False | Boolean | Required | |
| enableOnUi | Flag to enable template analytics setting on UI | True/False | Boolean | Optional |
Sample Request
curl --location --request POST '{{BASE_URL}}/partner/app/{{APP_ID}}/template/analytics' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'enable=true' \
--data-urlencode 'enableOnUi=true'Sample Response
{
"status": "success"
}
Status Codes
Status Code | Response | Comments |
|---|---|---|
Success | ||
200 |
| Successful response |
Error | ||
400 |
| Bad request |
429 |
| 10 Requests per Minute |
500 |
| For any Internal Error |
401 |
| Inavalid/Missing Token or appId. |
