---
title: "Send a funnel event using the Events REST API"
slug: "send-a-funnel-event-using-the-events-rest-api"
abstract: "Describes the procedure for sending a funnel event to Sitecore Discover using the Events REST API."
---
# Send a funnel event using the Events REST API

There are [many types of events](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/integrate-using-the-events-api/getting-started-with-the-events-api/events-data-model.md "Events data model") you can send using the Events API. However, there are some you are [required to send](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/integrate-using-the-events-api/getting-started-with-the-events-api/required-events-to-send-to-sitecore-discover.md "Required events to send to Sitecore Discover"), including all funnel events. This topic shows sample steps for how to send a funnel event (`add to cart`) using the Events REST API.

To send an `add to cart` event using the Events Rest API:

1. Retrieve your [API URL](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/integrate-using-the-events-api/getting-started-with-the-events-api/api-endpoints-and-methods.md "API endpoints and methods").
2. Create the [`add to cart` event object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/integrate-using-the-events-api/getting-started-with-the-events-api/add-to-cart-event.md "Add to cart event") as shown in the following code:

    ```JSON
    {
      "value": {
        "context": {
          "geo": <geo object>
        },
        "products": [
          {
            "sku": "3x112f92d16",
            "quantity": 1,
            "price": 9.99
          }
        ]
      },
      "type": "a2c",
      "name": "pdp",
      "t":1625144306397,
      "t0":1625144306397,
      "uuid":"<Discover UUID>",
      "user_id": "<anonymous user ID>"
    }
    ```

    > [!important]
    > You must provide either `uuid` or `user_id`.

3. Send the event object to your Events API URL as shown in the following code sample:

    ```shell
    POST {EVENT_URL}
    {
     "data": "{<event object goes here>}"
    }
    ```