---
updatedAt: 2026-09-11T05:09:54.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# Push conversion events to Meta

Push conversion events for a WhatsApp app via the dataset associated with its WABA.

## Rate limit:

500 requests per 60 seconds.

<br />

## Request Example:

```curl
curl --location '{{BASE_URL}}/partner/app/{{APP_ID}}/conversions/event' \
  --header 'Authorization: Bearer {{PARTNER_APP_TOKEN}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "data": [
        {
            "event_name": "Purchase",
            "event_time": 1675999999,
            "action_source": "business_messaging",
            "messaging_channel": "whatsapp",
            "user_data": {
                "whatsapp_business_account_id": {{WABA_ID}},
                "ctwa_clid": "{{CTWA_CLID}}"
            },
            "custom_data": {
                "currency": "USD",
                "value": 123
            }
        }
    ],
    "partner_agent": "{{PARTNER_NAME}}"
}'
```

<br />

### Response

| Status Code | Response      | Comments                                     |
| ----------- | ------------- | -------------------------------------------- |
| **Success** |               |                                              |
| 200         | See below     | Upstream success                             |
| **Error**   |               |                                              |
| 400         | See below     | Validation / business error (portal or WASS) |
| 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

```json
{
    "events_received": 1,
    "fbtrace_id": "AYZhpp4scrUfVIWcEWJ7NmN",
    "messages": [],
    "status": "success"
}
```

#### 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"}` |
| Missing data list                    | `{"message": "data list is required", "status": "error"}`                   |
| Missing user\_data                   | `{"message": "user_data is required", "status": "error"}`                   |
| Missing ctwa\_clid                   | `{"message": "ctwa_clid is required", "status": "error"}`                   |
| Invalid / missing WABA ID in payload | `{"message": "WABA ID is either empty or invalid", "status": "error"}`      |
| Invalid messaging\_channel           | `{"message": "messaging_channel must be whatsapp", "status": "error"}`      |
| Missing event\_name                  | `{"message": "event_name is required", "status": "error"}`                  |
| Incorrect event\_time                | `{"message": "event_time is incorrect", "status": "error"}`                 |
| Missing action\_source               | `{"message": "action_source is required", "status": "error"}`               |
| Missing partner\_agent               | `{"message": "partner_agent is required", "status": "error"}`               |
| Unknown app / no API key (portal)    | `{"status": "error", "message": "Invalid App Details"}`                     |

#### Error — 401

```json
{
  "status": "error",
  "message": "Unauthorised access to the resource. Please review request parameters and headers and retry"
}
```

#### Error — 429

```json
{
  "status": "error",
  "message": "Too Many Requests"
}
```

#### Error — 500

```json
{
  "status": "error",
  "message": "Unable to push conversions event 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     |
| **Headers**                                        |                            |                 |          |                                                  |
| Authorization                                      | Partner App token          | String          | Required | `Bearer {{PARTNER_APP_TOKEN}}` with PARTNER\_APP |
| Content-Type                                       | Media type                 | String          | Required | application/json                                 |
| **Body (JSON)**                                    |                            |                 |          |                                                  |
| data                                               | List of conversion events  | Array           | Required | Validated upstream                               |
| data\[].event\_name                                | Event name (e.g. Purchase) | String          | Required |                                                  |
| data\[].event\_time                                | Unix timestamp             | Number          | Required |                                                  |
| data\[].action\_source                             | Action source              | String          | Required | e.g. business\_messaging                         |
| data\[].messaging\_channel                         | Channel                    | String          | Required | Must be whatsapp                                 |
| data\[].user\_data                                 | User identifiers           | Object          | Required | Must include matching WABA id + ctwa\_clid       |
| data\[].user\_data.whatsapp\_business\_account\_id | WABA id                    | Number / String | Required | Must match app WABA                              |
| data\[].user\_data.ctwa\_clid                      | Click-to-WhatsApp click id | String          | Required |                                                  |
| data\[].custom\_data                               | Optional custom fields     | Object          | Optional | e.g. currency, value                             |
| partner\_agent                                     | Partner / agent name       | String          | Required |                                                  |

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Partner Conversions API",
    "description": "Partner Portal wrappers for Meta Conversions (CAPI) APIs.\n\nThese endpoints are pass-throughs: Partner Portal proxies the request to Self Serve (WASS)\nand returns the upstream response as-is. Request and response bodies may therefore vary with\nupstream changes.\n\nSelf Serve manages `dataset_id` per app (stored in `whatsapp_details`). If it is missing before\na push, WASS calls Meta `POST /{WABA_ID}/dataset` and stores the result.\n\nAuth for both routes: Partner App JWT (`ROLE_PARTNER_APP`).\n\nJira: PP-8252\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io/partner",
      "description": "Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Conversions",
      "description": "Meta Conversions API (CAPI) wrappers"
    }
  ],
  "paths": {
    "/app/{appId}/conversions/event": {
      "post": {
        "tags": [
          "Conversions"
        ],
        "summary": "Push conversion events to Meta",
        "description": "Push conversion events for a WhatsApp app via the dataset associated with its WABA.",
        "operationId": "pushConversionEvents",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/AppId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionEventRequest"
              },
              "examples": {
                "purchase": {
                  "summary": "Purchase event",
                  "value": {
                    "data": [
                      {
                        "event_name": "Purchase",
                        "event_time": 1675999999,
                        "action_source": "business_messaging",
                        "messaging_channel": "whatsapp",
                        "user_data": {
                          "whatsapp_business_account_id": 123456789012345,
                          "ctwa_clid": "ARBcDeFgHiJkLmNoPqRsTuVwXyZ"
                        },
                        "custom_data": {
                          "currency": "USD",
                          "value": 123
                        }
                      }
                    ],
                    "partner_agent": "gupshup"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Upstream success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionEventResponse"
                },
                "example": {
                  "events_received": 1,
                  "fbtrace_id": "AYZhpp4scrUfVIWcEWJ7NmN",
                  "messages": [],
                  "status": "success"
                }
              }
            }
          },
          "400": {
            "description": "Validation / business error (portal or WASS)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidAppDetails": {
                    "summary": "Invalid app details",
                    "value": {
                      "message": "Invalid app details",
                      "status": "error"
                    }
                  },
                  "noWabaAssociated": {
                    "summary": "No WABA associated",
                    "value": {
                      "message": "No WABA Associated",
                      "status": "error"
                    }
                  },
                  "notCapi": {
                    "summary": "App not on CAPI",
                    "value": {
                      "message": "This feature is supported only for CAPI",
                      "status": "error"
                    }
                  },
                  "missingData": {
                    "summary": "Missing data list",
                    "value": {
                      "message": "data list is required",
                      "status": "error"
                    }
                  },
                  "missingUserData": {
                    "summary": "Missing user_data",
                    "value": {
                      "message": "user_data is required",
                      "status": "error"
                    }
                  },
                  "missingCtwaClid": {
                    "summary": "Missing ctwa_clid",
                    "value": {
                      "message": "ctwa_clid is required",
                      "status": "error"
                    }
                  },
                  "invalidWabaId": {
                    "summary": "Invalid / missing WABA ID in payload",
                    "value": {
                      "message": "WABA ID is either empty or invalid",
                      "status": "error"
                    }
                  },
                  "invalidMessagingChannel": {
                    "summary": "Invalid messaging_channel",
                    "value": {
                      "message": "messaging_channel must be whatsapp",
                      "status": "error"
                    }
                  },
                  "missingEventName": {
                    "summary": "Missing event_name",
                    "value": {
                      "message": "event_name is required",
                      "status": "error"
                    }
                  },
                  "incorrectEventTime": {
                    "summary": "Incorrect event_time",
                    "value": {
                      "message": "event_time is incorrect",
                      "status": "error"
                    }
                  },
                  "missingActionSource": {
                    "summary": "Missing action_source",
                    "value": {
                      "message": "action_source is required",
                      "status": "error"
                    }
                  },
                  "missingPartnerAgent": {
                    "summary": "Missing partner_agent",
                    "value": {
                      "message": "partner_agent is required",
                      "status": "error"
                    }
                  },
                  "unknownApp": {
                    "summary": "Unknown app / no API key (portal)",
                    "value": {
                      "status": "error",
                      "message": "Invalid App Details"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "description": "Unexpected portal failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Unable to push conversions event for app id: 1a2b3c4d-5e6f-7890-abcd-ef1234567890"
                }
              }
            }
          },
          "default": {
            "description": "Non-success from WASS is passed through as-is",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "x-internal": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Partner App JWT with role `ROLE_PARTNER_APP`."
      }
    },
    "parameters": {
      "AppId": {
        "name": "appId",
        "in": "path",
        "required": true,
        "description": "Partner / WhatsApp app id. The app must belong to the authenticated partner.",
        "schema": {
          "type": "string"
        },
        "example": "1a2b3c4d-5e6f-7890-abcd-ef1234567890"
      }
    },
    "schemas": {
      "ConversionEventRequest": {
        "type": "object",
        "required": [
          "data",
          "partner_agent"
        ],
        "additionalProperties": true,
        "properties": {
          "data": {
            "type": "array",
            "description": "List of conversion events. Validated upstream.",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ConversionEvent"
            }
          },
          "partner_agent": {
            "type": "string",
            "description": "Partner / agent name.",
            "example": "gupshup"
          }
        }
      },
      "ConversionEvent": {
        "type": "object",
        "required": [
          "event_name",
          "event_time",
          "action_source",
          "messaging_channel",
          "user_data"
        ],
        "additionalProperties": true,
        "properties": {
          "event_name": {
            "type": "string",
            "description": "Event name (e.g. Purchase).",
            "example": "Purchase"
          },
          "event_time": {
            "type": "integer",
            "format": "int64",
            "description": "Unix timestamp (seconds).",
            "example": 1675999999
          },
          "action_source": {
            "type": "string",
            "description": "Action source.",
            "example": "business_messaging"
          },
          "messaging_channel": {
            "type": "string",
            "description": "Channel. Must be `whatsapp`.",
            "example": "whatsapp"
          },
          "user_data": {
            "$ref": "#/components/schemas/ConversionUserData"
          },
          "custom_data": {
            "type": "object",
            "description": "Optional custom fields (e.g. currency, value).",
            "additionalProperties": true,
            "example": {
              "currency": "USD",
              "value": 123
            }
          }
        }
      },
      "ConversionUserData": {
        "type": "object",
        "description": "User identifiers. Must include matching WABA id + ctwa_clid.",
        "required": [
          "whatsapp_business_account_id",
          "ctwa_clid"
        ],
        "additionalProperties": true,
        "properties": {
          "whatsapp_business_account_id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer",
                "format": "int64"
              }
            ],
            "description": "WABA id. Must match the WABA associated with the app.",
            "example": 123456789012345
          },
          "ctwa_clid": {
            "type": "string",
            "description": "Click-to-WhatsApp click id.",
            "example": "ARBcDeFgHiJkLmNoPqRsTuVwXyZ"
          }
        }
      },
      "ConversionEventResponse": {
        "type": "object",
        "description": "Upstream (Meta via WASS) response, passed through as-is.",
        "additionalProperties": true,
        "properties": {
          "events_received": {
            "type": "integer",
            "example": 1
          },
          "fbtrace_id": {
            "type": "string",
            "example": "AYZhpp4scrUfVIWcEWJ7NmN"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "status": {
            "type": "string",
            "example": "success"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid Partner App token",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Unauthorised access to the resource. Please review request parameters and headers and retry"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Caller lacks PARTNER_APP",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Unauthorised access to the resource. Please review request parameters and headers and retry"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit exceeded",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "status": "error",
              "message": "Too Many Requests"
            }
          }
        }
      }
    }
  }
}
```