get
https://partner.gupshup.io/partner/app//conversions/dataset
Fetch the Meta dataset id for a Self Serve app. If it is not stored yet, Self Serve obtains it from Meta and persists it.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Rate limit:
10 requests per 60 seconds.
Request Example:
curl --location '{{BASE_URL}}/partner/app/{{APP_ID}}/conversions/dataset' \
--header 'Authorization: Bearer {{PARTNER_APP_TOKEN}}'Response
| Status Code | Response | Comments |
|---|---|---|
| Success | ||
| 200 | See below | Dataset id in message |
| Error | ||
| 400 | See below | Invalid app / no WABA / not CAPI |
| 401 | See below | Missing or invalid Partner App token |
| 403 | See below | Caller lacks PARTNER_APP |
| 429 | See below | Rate limit exceeded |
| 4xx / 5xx | Upstream body | Non-success from WASS is passed through |
| 500 | See below | Unexpected portal failure |
Success — 200
{
"message": "670889492068316",
"status": "success"
}message is the Meta dataset_id.
Error — 400 (examples from Self Serve)
| Scenario | Response body |
|---|---|
| Invalid app details | {"message": "Invalid app details", "status": "error"} |
| No WABA associated | {"message": "No WABA Associated", "status": "error"} |
| App not on CAPI | {"message": "This feature is supported only for CAPI", "status": "error"} |
| Unknown app / no API key (portal) | {"status": "error", "message": "Invalid App Details"} |
Error — 401
{
"status": "error",
"message": "Unauthorised access to the resource. Please review request parameters and headers and retry"
}Error — 429
{
"status": "error",
"message": "Too Many Requests"
}Error — 500
{
"status": "error",
"message": "Unable to get conversions dataset for app id: {{APP_ID}}"
}Request parameters
| Key | Description | Data type | Required | Constraints |
|---|---|---|---|---|
| Path | ||||
| appId | Partner / WhatsApp app id | String | Required | App must belong to the authenticated partner |
| Authorization | Partner App token | String | Required | Bearer {{PARTNER_APP_TOKEN}} with PARTNER_APP |
