---
title: "Get Events"
description: "How to call Get Events (GET /api/events/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2023-01-24/reference/get_events"
revision: "2023-01-24"
latestUrl: "https://developers.klaviyo.com/en/reference/get_events"
operationId: "get_events"
method: "GET"
endpoint: "https://a.klaviyo.com/api/events/"
authentication: "privateKey"
scopes: ["Events Read"]
rateLimits: {"burst":"350/s","steady":"3500/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"include":["metrics","profiles"],"fields":{"event":["metric_id","profile_id","timestamp","event_properties","datetime","uuid"],"metric":["name","created","updated","integration"],"profile":["email","phone_number","external_id","first_name","last_name","organization","title","image","created","updated","last_event_date","location","location.address1","location.address2","location.city","location.country","location.latitude","location.longitude","location.region","location.zip","location.timezone","properties","subscriptions","subscriptions.email","subscriptions.email.marketing","subscriptions.email.marketing.consent","subscriptions.email.marketing.timestamp","subscriptions.email.marketing.method","subscriptions.email.marketing.method_detail","subscriptions.email.marketing.custom_method_detail","subscriptions.email.marketing.double_optin","subscriptions.email.marketing.suppressions","subscriptions.email.marketing.suppressions.reason","subscriptions.email.marketing.suppressions.timestamp","subscriptions.email.marketing.list_suppressions","subscriptions.email.marketing.list_suppressions.list_id","subscriptions.email.marketing.list_suppressions.reason","subscriptions.email.marketing.list_suppressions.timestamp","subscriptions.sms","subscriptions.sms.marketing","subscriptions.sms.marketing.consent","subscriptions.sms.marketing.timestamp","subscriptions.sms.marketing.method","subscriptions.sms.marketing.method_detail"]},"sort":["datetime","-datetime","timestamp","-timestamp"],"pagination":{"style":"cursor"}}
related: ["https://developers.klaviyo.com/en/v2023-01-24/reference/events/llms.txt","https://developers.klaviyo.com/en/v2023-01-24/reference/create_event.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_event.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_event_metrics.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_event_profiles.md","https://developers.klaviyo.com/en/v2023-01-24/reference/get_event_relationships.md"]
---

# Get Events

> This is the Markdown version of https://developers.klaviyo.com/en/v2023-01-24/reference/get_events

```http
GET https://a.klaviyo.com/api/events/
```

Get all events in an account
Requests can be sorted by the following fields: `datetime`, `timestamp`
Include parameters can be provided to get the following related resource data: `metrics`, `profiles`
Returns a maximum of 200 events per page.

- Revision header: `revision: 2023-01-24` (required)
- Scopes: `Events Read`
- Rate limits: Burst: `350/s`, Steady: `3500/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/events/' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/json' \
     --header 'revision: 2023-01-24'
```

## Query parameters

- `fields[event]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md) Allowed values: `metric_id`, `profile_id`, `timestamp`, `event_properties`, `datetime`, `uuid`
- `fields[metric]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md) Allowed values: `name`, `created`, `updated`, `integration`
- `fields[profile]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md) Allowed values: `email`, `phone_number`, `external_id`, `first_name`, `last_name`, `organization`, `title`, `image`, `created`, `updated`, `last_event_date`, `location`, `location.address1`, `location.address2`, `location.city`, `location.country`, `location.latitude`, `location.longitude`, `location.region`, `location.zip`, `location.timezone`, `properties`, `subscriptions`, `subscriptions.email`, `subscriptions.email.marketing`, `subscriptions.email.marketing.consent`, `subscriptions.email.marketing.timestamp`, `subscriptions.email.marketing.method`, `subscriptions.email.marketing.method_detail`, `subscriptions.email.marketing.custom_method_detail`, `subscriptions.email.marketing.double_optin`, `subscriptions.email.marketing.suppressions`, `subscriptions.email.marketing.suppressions.reason`, `subscriptions.email.marketing.suppressions.timestamp`, `subscriptions.email.marketing.list_suppressions`, `subscriptions.email.marketing.list_suppressions.list_id`, `subscriptions.email.marketing.list_suppressions.reason`, `subscriptions.email.marketing.list_suppressions.timestamp`, `subscriptions.sms`, `subscriptions.sms.marketing`, `subscriptions.sms.marketing.consent`, `subscriptions.sms.marketing.timestamp`, `subscriptions.sms.marketing.method`, `subscriptions.sms.marketing.method_detail`
- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md)\
  Allowed field(s)/operator(s):\
  `metric_id`: `equals`\
  `datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`\
  `timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md) Allowed values: `metrics`, `profiles`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md)
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-01-24/reference.md) Allowed values: `datetime`, `-datetime`, `timestamp`, `-timestamp`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2023-01-24`

## Responses

### 200: 

Content type: `application/json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `event`
  - `id` (string, required): The Event ID
  - `attributes` (object, required)
    - `metric_id` (string, required): The Metric ID
    - `profile_id` (string): Profile ID of the associated profile, if available
    - `timestamp` (string): Event timestamp in seconds
    - `event_properties` (object): Event properties, can include attribution data, identifiers and extra properties
    - `datetime` (string): Event timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
    - `uuid` (string): A unique identifier for the event, this can be used as a cursor in pagination
  - `relationships` (object)
    - `metrics` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `profiles` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object, required)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `included` (oneOf[])
  - One of:
    - Option 1: `IncludedMetrics`
      - `type` (string, required): Allowed values: `metric`
      - `id` (string, required): The Metric ID
      - `attributes` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 2: `IncludedProfiles`
      - `type` (string, required): Allowed values: `profile`
      - `id` (string, required): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
      - `attributes` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": [
    {
      "type": "event",
      "id": "string",
      "attributes": {
        "metric_id": "string",
        "profile_id": "string",
        "timestamp": "string",
        "event_properties": {},
        "datetime": "string",
        "uuid": "string"
      },
      "relationships": {
        "metrics": {
          "data": [
            {
              "type": "metric",
              "id": "string"
            }
          ]
        },
        "profiles": {
          "data": [
            {
              "type": "profile",
              "id": "string"
            }
          ]
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "included": [
    {
      "type": "metric",
      "id": "string",
      "attributes": {
        "name": "string",
        "created": "string",
        "updated": "string",
        "integration": {}
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
