---
updatedAt: 2026-03-01T18:52:32.000Z
---

# List event types

```curl cURL
egcurl --eg-section default --request GET \
  --url "https://$hostname/event-viewer-api/v1/event-types" \
  --header "Accept: application/json"
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection,
});

eg.auth({
  path: `/event-viewer-api/v1/event-types`,
  method: "GET",
  headers: {
    Accept: "application/json",
  },
});
eg.send(function (error, response, body) {
  console.log(JSON.stringify(JSON.parse(body), null, 2));
});

```

```python Python
import requests
import json
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
 

path = '/event-viewer-api/v1/event-types'
headers = {
  
  "Accept": "application/json"}  

result = session.get(urljoin(baseurl, path), headers=headers)
print(result.status_code)
print(json.dumps(result.json(), indent=2))  
```

```json Response Example
[
    {
        "eventTypeId": "16",
        "eventTypeName": "All Logins",
        "eventDefinitions": [
            {
                "eventDefinitionId": "415195",
                "eventName": "Login",
                "eventDescription": "A user logged in."
            }
        ]
    },
    {
        "eventTypeId": "198",
        "eventTypeName": "API Definition",
        "eventDefinitions": [
            {
                "eventDefinitionId": "800313",
                "eventName": "Update an Endpoint Resources Details",
                "eventDescription": "Update an Endpoint Resources Details."
            },
            {
                "eventDefinitionId": "892355",
                "eventName": "Create an Endpoint",
                "eventDescription": "Add a new Endpoint"
            },
            {
                "eventDefinitionId": "913159",
                "eventName": "Delete Endpoint Resource",
                "eventDescription": "Deletes an endpoint resource details."
            }
        ]
    }
]
```

# Set up authorization

<!-- curl@1 -->
<!-- node@1-8 -->
<!-- python@1-11 -->

Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).

Then, you can use these code samples to apply the token values to your requests.

# What it does



You run this operation to get a set of `eventTypeIds` and their related events definitions. You can pick an `eventTypeId` for subsequent calls.

# Call the API

<!-- curl@0-100 -->
<!-- node@0-100 -->
<!-- python@0-100 -->

Call GET on the request URL.

# Review the response data

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response contains an array of `eventTypeIds`. You can pick an `eventTypeId` to find out more about its associated events.

To do that run [List events](https://techdocs.akamai.com/event-viewer/reference/events#get-events).