Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-10-15/reference/get_events.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-10-15

You're reading the reference for API revision 2023-10-15. The latest revision is 2026-10-15. See this page in the latest revision.

Get Events

GEThttps://a.klaviyo.com/api/events/

Get all events in an account

Requests can be sorted by the following fields: datetime, timestamp

Returns a maximum of 200 events per page.

Revision header
revision: 2023-10-15required
Scopes
events:read
Rate limits
Burst: 350/sSteady: 3500/m

Query parameters

  • fields[event]#string[]

    For more information please visit API overview

    Allowed values:
    • timestamp
    • event_properties
    • datetime
    • uuid
  • fields[metric]#string[]

    For more information please visit API overview

    Allowed values:
    • name
    • created
    • updated
    • integration
  • fields[profile]#string[]

    For more information please visit API overview

    Show 23 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
    • location.ip
    • properties
  • filter#string

    For more information please visit API overview
    Allowed field(s)/operator(s):
    metric_id: equals
    profile_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

    Allowed values:
    • metric
    • profile
  • page[cursor]#string

    For more information please visit API overview

  • sort#string

    For more information please visit API overview

    Allowed values:
    • datetime
    • -datetime
    • timestamp
    • -timestamp

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2023-10-15

Responses

200Success

Content type: application/json

  • data#object[]required
    Show 5 fields
    • relationships#object
      Show 2 fields
      • profile#object
        Show 2 fields
        • data#objectrequired
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • profile
          • id#stringrequired

            Profile ID of the associated profile, if available

      • metric#object
        Show 2 fields
        • data#objectrequired
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • metric
          • id#stringrequired

            The Metric ID

    • type#stringrequired
      Allowed values:
      • event
    • id#stringrequired

      The Event ID

    • attributes#objectrequired
      Show 4 fields
      • timestamp#integer

        Event timestamp in seconds

      • event_properties#object

        Event properties, can include attribution data, identifiers and extra properties

      • datetime#string

        Event timestamp in string format (YYYY-MM-DD HH:MM:SS+hh:mm)

        Example: 2022-11-08 01:23:45+00:00

      • uuid#string

        A unique identifier for the event, this can be used as a cursor in pagination

  • included#oneOf[]

    One of:

    1. Option 1: MetricResponseObjectResource
      • type#stringrequired
        Allowed values:
        • metric
      • id#stringrequired

        The Metric ID

      • attributes#objectrequired
        Show 4 fields
        • name#string

          The name of the metric

        • created#string

          Creation time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        • updated#string

          Last updated time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        • integration#object

          The integration associated with the event

    2. Option 2: ProfileResponseObjectResource
      • type#stringrequired
        Allowed values:
        • profile
      • id#string

        Primary key that uniquely identifies this profile. Generated by Klaviyo.

        Example: 01GDDKASAP8TKDDA2GRZDSVP4H

      • attributes#objectrequired
        Show 13 fields
        • email#string

          Individual's email address

          Example: sarah.mason@klaviyo-demo.com

        • phone_number#string

          Individual's phone number in E.164 format

          Example: +15005550006

        • external_id#string

          A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.

          Example: 63f64a2b-c6bf-40c7-b81f-bed08162edbe

        • first_name#string

          Individual's first name

          Example: Sarah

        • last_name#string

          Individual's last name

          Example: Mason

        • organization#string

          Name of the company or organization within the company for whom the individual works

          Example: Klaviyo

        • title#string

          Individual's job title

          Example: Engineer

        • image#string

          URL pointing to the location of a profile image

          Example: https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg

        • created#string<date-time>

          Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

          Example: 2022-11-08T00:00:00

        • updated#string<date-time>

          Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

          Example: 2022-11-08T00:00:00

        • last_event_date#string<date-time>

          Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

          Example: 2022-11-08T00:00:00

        • location#object
          Show 10 fields
          • address1#string

            First line of street address

            Example: 89 E 42nd St

          • address2#string

            Second line of street address

            Example: 1st floor

          • city#string

            City name

            Example: New York

          • country#string

            Country name

            Example: United States

          • latitude#string | number

            Latitude coordinate. We recommend providing a precision of four decimal places.

            Example: 40.7128

          • longitude#string | number

            Longitude coordinate. We recommend providing a precision of four decimal places.

            Example: 74.0060

          • region#string

            Region within a country, such as state or province

            Example: NY

          • zip#string

            Zip code

            Example: 10017

          • timezone#string

            Time zone name. We recommend using time zones from the IANA Time Zone Database.

            Example: America/New_York

          • ip#string

            IP Address

            Example: 127.0.0.1

        • properties#object

          An object containing key/value pairs for any custom properties assigned to this profile

4XXClient Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string