---
title: "List event names REST API | HitKeep"
description: "Reference for the HitKeep REST API operation List event names, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesideventsnames/"
---

# List event names REST API

GET

/api/sites/{id}/events/names

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/names';
const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request GET \
  --url http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/names \
  --cookie hk_token=<hk_token>
```

-

Lists custom and automatic event names observed for a site in the selected date range.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**
- **[bearerAuth](https://hitkeep.com/api/#bearerauth)**
- **[apiKeyAuth](https://hitkeep.com/api/#apikeyauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

### Query Parameters

**from**

string format: date-time

**to**

string format: date-time

## Responses

### 200

Event names

application/json

Array<string>

##### Examplegenerated

```
[
  "example"
]
```

[Previous Get event property breakdown](https://hitkeep.com/api/operations/apisitesideventsbreakdown/)[Next List event property keys](https://hitkeep.com/api/operations/apisitesideventsproperties/)
