Skip to content

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

KlaviyoKlaviyoDevelopers
v2023-01-24

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

Get Event

GEThttps://a.klaviyo.com/api/events/{id}/

Get an event with the given event ID. Include parameters can be provided to get the following related resource data: metrics, profiles

Revision header
revision: 2023-01-24required
Scopes
Events Read
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

    ID of the event

Query parameters

  • fields[event]#string[]

    For more information please visit API overview

    Allowed values:
    • metric_id
    • profile_id
    • 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 44 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
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • metrics
    • profiles

Headers

  • revision#stringrequired

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

    2023-01-24

Responses

200

Content type: application/json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • event
    • id#stringrequired

      The Event ID

    • attributes#objectrequired
      Show 6 fields
      • metric_id#stringrequired

        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
      Show 2 fields
      • metrics#object
        Show 1 field
        • data#object[]required
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • metric
          • id#stringrequired
      • profiles#object
        Show 1 field
        • data#object[]required
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • profile
          • id#stringrequired
  • included#oneOf[]

    One of:

    1. Option 1: IncludedMetrics
      • 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: IncludedProfiles
      • type#stringrequired
        Allowed values:
        • profile
      • id#stringrequired

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

        Example: 01GDDKASAP8TKDDA2GRZDSVP4H

      • attributes#objectrequired
        Show 14 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 9 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

        • properties#object

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

        • subscriptions#object
          Show 2 fields
          • email#object
            Show 1 field
            • marketing#object
              Show 8 fields
              • consent#stringrequired

                The consent status for email marketing.

                Example: SUBSCRIBED

              • timestamp#string<date-time>

                The timestamp when consent record or updated for email marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                Example: 2023-02-21T20:07:38+00:00

              • method#stringrequired

                The method by which the profile was subscribed to email marketing.

                Example: PREFERENCE_PAGE

              • method_detail#string

                Additional details about the method by which the profile was subscribed to SMS marketing. This may be empty if no details were provided.

                Example: mydomain.com/signup

              • custom_method_detail#string

                Additional detail provided by the caller when the profile was subscribed. This may be empty if no details were provided.

                Example: marketing drive

              • double_optin#boolean

                Whether the profile was subscribed to email marketing using a double opt-in.

                Example: True

              • suppressions#object
                Show 2 fields
                • reason#stringrequired

                  The reason the profile was suppressed from the list.

                  Example: HARD_BOUNCE

                • timestamp#string<date-time>required

                  The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                  Example: 2023-02-21T20:07:38+00:00

              • list_suppressions#object
                Show 3 fields
                • list_id#stringrequired

                  The ID of list to which the suppression applies.

                  Example: Y6nRLr

                • reason#stringrequired

                  The reason the profile was suppressed from the list.

                  Example: USER_SUPPRESSED

                • timestamp#string<date-time>required

                  The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                  Example: 2023-02-21T20:07:38+00:00

          • sms#object
            Show 1 field
            • marketing#object
              Show 4 fields
              • consent#stringrequired

                The consent status for SMS marketing.

                Example: SUBSCRIBED

              • timestamp#string<date-time>required

                The timestamp when consent record or updated for SMS marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

                Example: 2023-02-21T20:07:38+00:00

              • method#stringrequired

                The method by which the profile was subscribed to SMS marketing.

                Example: TEXT

              • method_detail#stringrequired

                Additional details about the method which the profile was subscribed to SMS marketing. This may be empty if no details were provided.

                Example: JOIN

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