> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pushing events

Once you have configured your webhook connector, you can now use this to push a single or multiple events to USM Anywhere.

**To push events**

1. Open <Tooltip tip="Postman is a platform to design and test APIs.">Postman</Tooltip>, and select a **POST** request action from the dropdown.
2. Enter or paste the **Webhook URL** you have saved.
3. Click the **Header** tab, and then add a header with the following:
   * **Key**: API\_KEY
   * **Value**: Enter the API Key you have saved.
4. Click the **Body** tab, and then add the events to be pushed.
5. Click **Send** to send your events to USM Anywhere. A confirmation message appears below. You may also open the [Events](/documentation/usm-anywhere/user-guide/events/viewing-events-details) page in USM Anywhere to verify that it has collected the events you have pushed.

   <Note>
     **Note:** Alternatively, the API\_KEY can be used as a URL parameter.
   </Note>

## Pushing a single event

Refer to the curl command below to push a single event.

> `curl --location '<base_url>/api/1.0/webhook/push' \`
>
> `--header 'API_KEY: <api_key>' \`
>
> `--header 'Content-Type: application/json' \`
>
> `--data '{`
>
> `    "event": "value"`
>
> `}'`

As a URL parameter:

```
curl --location '<base_url>/api/1.0/webhook/push?API_KEY=<api_key>' \ --header 'Content-Type: application/json' \ --data '{     "event": "value" }'
```

## Pushing multiple events

You can push up to a maximum of 10,000 events in one go using JSON format. Refer to the curl command below to push multiple events.

> `curl --location '<base_url>/api/1.0/webhook/push' \`
>
> `--header 'API_KEY: <api_key>' \`
>
> `--header 'Content-Type: application/json' \`
>
> `--data '[`
>
> `  {`
>
> `        "event1": "event1 value"`
>
> `  },`
>
> `  {`
>
> `       "event2": "event2 value"`
>
> `  },`
>
> `  {`
>
> `       "event3": "event3 value"`
>
> `  }`
>
> `]'`

<Note>
  Use the header "**Content-Encoding: gzip**" when sending a payload compressed as a gzip.
</Note>

As a URL parameter:

```
curl --location '<base_url>/api/1.0/webhook/push?API_KEY=<api_key>'  \ --header 'Content-Type: application/json' \ --data '[ {         "event1": "event1 value" }, {      "event2": "event2 value" }, {      "event3": "event3 value" } ]'
```

<Note>
  **Note:** When the API\_KEY is included in the URL and in the HTTP Headers, the API\_KEY value checked will be the header value. The URL parameter value and the header value must be equals.
</Note>

## Errors when pushing events

The following errors may occur when pushing events:

* **400 Bad Request**: This error occurs when you try to push events without providing events in the Body section.
* **404 Not Found**: This error occurs when you try to push events without providing the correct API Key.
