Get dataset id

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 CodeResponseComments
Success
200See belowDataset id in message
Error
400See belowInvalid app / no WABA / not CAPI
401See belowMissing or invalid Partner App token
403See belowCaller lacks PARTNER_APP
429See belowRate limit exceeded
4xx / 5xxUpstream bodyNon-success from WASS is passed through
500See belowUnexpected portal failure

Success — 200

{
    "message": "670889492068316",
    "status": "success"
}

message is the Meta dataset_id.

Error — 400 (examples from Self Serve)

ScenarioResponse 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

KeyDescriptionData typeRequiredConstraints
Path
appIdPartner / WhatsApp app idStringRequiredApp must belong to the authenticated partner
AuthorizationPartner App tokenStringRequiredBearer {{PARTNER_APP_TOKEN}} with PARTNER_APP
Path Params
string
required

Partner / WhatsApp app id. The app must belong to the authenticated partner.

Responses

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