---
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/reference/get_events"
revision: "2026-10-15"
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
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json"
jsonApi: {"include":["attributions","metric","profile"],"fields":{"attribution":["id"],"event":["datetime","event_properties","id","timestamp","uuid"],"metric":["created","id","integration","name","updated"],"profile":["created","email","external_id","first_name","id","image","last_event_date","last_name","locale","location","location.address1","location.address2","location.city","location.country","location.ip","location.latitude","location.longitude","location.region","location.timezone","location.zip","organization","phone_number","properties","title","updated"]},"filter":{"metric_id":{"operators":{"single":["equals"],"list":["equals"]},"type":"string"},"profile_id":{"operators":{"single":["equals"]},"type":"string"},"profile":{"operators":{"none":["has"]},"type":"any"},"metric":{"operators":{"none":["has"]},"type":"any"},"properties":{"operators":{"list":["equals"],"single":["equals"]},"type":"any"},"datetime":{"operators":{"single":["greater-or-equal","greater-than","less-or-equal","less-than"]},"type":"string<date-time>"},"timestamp":{"operators":{"single":["greater-or-equal","greater-than","less-or-equal","less-than"]},"type":"number"}},"sort":["datetime","-datetime","timestamp","-timestamp"],"pagination":{"style":"cursor","defaultPageSize":"200"}}
related: ["https://developers.klaviyo.com/en/reference/events/llms.txt","https://developers.klaviyo.com/en/reference/get_event.md","https://developers.klaviyo.com/en/reference/create_event.md","https://developers.klaviyo.com/en/reference/bulk_create_events.md","https://developers.klaviyo.com/en/reference/get_metric_for_event.md","https://developers.klaviyo.com/en/reference/get_metric_id_for_event.md","https://developers.klaviyo.com/en/reference/get_profile_for_event.md","https://developers.klaviyo.com/en/reference/get_profile_id_for_event.md"]
---

# Get Events

> This is the Markdown version of https://developers.klaviyo.com/en/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`

[Custom metrics](https://developers.klaviyo.com/en/reference/metrics.md) are not supported in the `metric_id` filter.

Returns 200 events per page by default, and up to 1000 with `page[size]`.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `events:read`
- Rate limits: Burst: `350/s`, Steady: `3500/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/events' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15'
```

### CLI

```bash
klaviyo events list
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Events.get_events()
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, EventsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const eventsApi = new EventsApi(session)

const response = await eventsApi.getEvents()
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Events.get_events()
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Events->getEvents();
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Query parameters

- `fields[attribution]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`
- `fields[event]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `datetime`, `event_properties`, `id`, `timestamp`, `uuid`
- `fields[metric]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created`, `id`, `integration`, `name`, `updated`
- `fields[profile]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created`, `email`, `external_id`, `first_name`, `id`, `image`, `last_event_date`, `last_name`, `locale`, `location`, `location.address1`, `location.address2`, `location.city`, `location.country`, `location.ip`, `location.latitude`, `location.longitude`, `location.region`, `location.timezone`, `location.zip`, `organization`, `phone_number`, `properties`, `title`, `updated`
- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)\
  Allowed field(s)/operator(s):\
  `metric_id`: `equals` (string)\
  `profile_id`: `equals` (string)\
  `profile`: `has`\
  `metric`: `has`\
  `properties.<key>`: `equals`\
  `datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (date-time)\
  `timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (number) Example: `equals(metric_id,'example')`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `attributions`, `metric`, `profile`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)
- `page[size]` (integer): Default: 200. Min: 1. Max: 1000.
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `datetime`, `-datetime`, `timestamp`, `-timestamp`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `event`
  - `id` (string, required): The Event ID
  - `attributes` (object, required)
    - `timestamp` (integer, nullable): Event timestamp in seconds
    - `event_properties` (object, nullable): Event properties, can include identifiers and extra properties
    - `datetime` (string<date-time>, nullable): Event timestamp in ISO8601 format (YYYY-MM-DDTHH:MM:SS+hh:mm) Example: `2022-11-08T01:23:45+00:00`
    - `uuid` (string, nullable): A unique identifier for the event, this can be used as a cursor in pagination
  - `relationships` (object)
    - `profile` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
    - `metric` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
    - `attributions` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response
- `included` (oneOf[])
  - One of:
    - Option 1: `MetricResponseObjectResource`
      - `type` (string, required): Allowed values: `metric`
      - `id` (string, required): The Metric ID
      - `attributes` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `relationships` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 2: `ProfileResponseObjectResource`
      - `type` (string, required): Allowed values: `profile`
      - `id` (string, nullable): Primary key that uniquely identifies this profile. Generated by Klaviyo. Example: `01GDDKASAP8TKDDA2GRZDSVP4H`
      - `attributes` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `relationships` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 3: `AttributionResponseObjectResource`
      - `type` (string, required): Allowed values: `attribution`
      - `id` (string, required): The ID of the attribution Example: `925e385b52fb405715f3616c337cc65c`
      - `relationships` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_events.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": [
    {
      "type": "event",
      "id": "string",
      "attributes": {
        "timestamp": 0,
        "event_properties": {},
        "datetime": "2022-11-08T01:23:45+00:00",
        "uuid": "string"
      },
      "relationships": {
        "profile": {
          "data": {
            "type": "profile",
            "id": "string"
          },
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "metric": {
          "data": {
            "type": "metric",
            "id": "string"
          },
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "attributions": {
          "data": [
            {
              "type": "attribution",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  },
  "included": [
    {
      "type": "metric",
      "id": "string",
      "attributes": {
        "name": "string",
        "created": "string",
        "updated": "string",
        "integration": {}
      },
      "relationships": {
        "flow-triggers": {
          "data": [
            {
              "type": "flow",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+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/vnd.api+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"
      }
    }
  ]
}
```
