---
title: "Create Client Event"
description: "How to call Create Client Event (POST /client/events) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_client_event"
revision: "2026-10-15"
operationId: "create_client_event"
method: "POST"
endpoint: "https://a.klaviyo.com/client/events"
authentication: "publicKey"
scopes: ["events:write"]
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/create_client_event.json"
related: ["https://developers.klaviyo.com/en/reference/client/llms.txt","https://developers.klaviyo.com/en/reference/get_client_review_values_reports.md","https://developers.klaviyo.com/en/reference/get_client_reviews.md","https://developers.klaviyo.com/en/reference/create_client_review.md","https://developers.klaviyo.com/en/reference/get_client_geofences.md","https://developers.klaviyo.com/en/reference/create_client_subscription.md","https://developers.klaviyo.com/en/reference/create_client_push_token.md","https://developers.klaviyo.com/en/reference/unregister_client_push_token.md","https://developers.klaviyo.com/en/reference/create_client_profile.md","https://developers.klaviyo.com/en/reference/bulk_create_client_events.md","https://developers.klaviyo.com/en/reference/create_client_back_in_stock_subscription.md","https://developers.klaviyo.com/en/reference/get_client_ip_allowlist.md"]
---

# Create Client Event

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_client_event

```http
POST https://a.klaviyo.com/client/events
```

Create a new event to track a profile's activity.

This endpoint is specifically designed to be called from publicly-browseable, client-side environments only and requires a [public API key (site ID)](https://www.klaviyo.com/settings/account/api-keys). Never use a private API key with our client-side endpoints.

Do not use this endpoint from server-side applications. To create events from server-side applications, instead use [POST /api/events](https://developers.klaviyo.com/en/reference/create_event.md).

Note that to update a profile's existing identifiers (e.g., email), you must use a server-side endpoint authenticated by a private API key. Attempts to do so via client-side endpoints will return a 202, however the identifier field(s) will not be updated.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `events:write`
- Authentication: Public API key (site ID), in the `company_id` query parameter
- 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/create_client_event.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/client/events?company_id=PUBLIC_API_KEY' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "event",
    "attributes": {
      "properties": {
        "Brand": "Kids Book",
        "ProductID": 1111,
        "ProductName": "Winnie the Pooh"
      },
      "time": "2022-11-08T00:00:00+00:00",
      "value": 9.99,
      "value_currency": "USD",
      "metric": {
        "data": {
          "type": "metric",
          "attributes": {
            "name": "Viewed Product"
          }
        }
      },
      "profile": {
        "data": {
          "type": "profile",
          "attributes": {
            "email": "sarah.mason@klaviyo-demo.com",
            "phone_number": "+15005550006",
            "first_name": "Sarah",
            "last_name": "Mason",
            "organization": "Example Corporation",
            "locale": "en-US",
            "title": "Regional Manager",
            "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
            "properties": {
              "pseudonym": "Dr. Octopus"
            }
          }
        }
      }
    }
  }
}'
```

### CLI

```bash
klaviyo client create-client-event \
  --company-id PUBLIC_API_KEY \
  -d '{
  "data": {
    "type": "event",
    "attributes": {
      "properties": {
        "Brand": "Kids Book",
        "ProductID": 1111,
        "ProductName": "Winnie the Pooh"
      },
      "time": "2022-11-08T00:00:00+00:00",
      "value": 9.99,
      "value_currency": "USD",
      "metric": {
        "data": {
          "type": "metric",
          "attributes": {
            "name": "Viewed Product"
          }
        }
      },
      "profile": {
        "data": {
          "type": "profile",
          "attributes": {
            "email": "sarah.mason@klaviyo-demo.com",
            "phone_number": "+15005550006",
            "first_name": "Sarah",
            "last_name": "Mason",
            "organization": "Example Corporation",
            "locale": "en-US",
            "title": "Regional Manager",
            "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
            "properties": {
              "pseudonym": "Dr. Octopus"
            }
          }
        }
      }
    }
  }
}'
```

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

## Query parameters

- `company_id` (string, required): Your Public API Key / Site ID. See [this article](https://help.klaviyo.com/hc/en-us/articles/115005062267) for more details. Example: `PUBLIC_API_KEY`

## Headers

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

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `event`
  - `attributes` (object, required)
    - `properties` (object, required): Properties of this event (must not exceed 400 properties). The size of the event payload must not exceed 5 MB,
      and each string cannot be larger than 100 KB. For a full list of data limits on event payloads,
      see [Limitations](https://developers.klaviyo.com/en/reference/events.md).
      
      Note any top-level property that is not an object can be
      used to create segments. The `$extra` property records any
      non-segmentable values that can be referenced later, e.g., HTML templates are
      useful on a segment but are not used to create a segment.
    - `time` (string<date-time>, nullable): When this event occurred. By default, the time the request was received will be used.
      The time is truncated to the second. The time must be after the year 1990 and can only
      be up to 1 year in the future. Example: `2022-11-08T00:00:00+00:00`
    - `value` (number, nullable): A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase. Example: `9.99`
    - `value_currency` (string, nullable): The ISO 4217 currency code of the value associated with the event. Example: `USD`
    - `unique_id` (string, nullable): A unique identifier for an event. If the unique_id is repeated for the same
      profile and metric, only the first processed event will be recorded. If this is not
      present, this will use the time to the second. Using the default, this limits only one
      event per profile per second.
    - `backfill` (boolean, nullable): When true, the event is recorded but does NOT trigger flows. Use this when backfilling
      historical events so existing flow definitions do not re-fire on events that already
      fired in the past. Default: `false`
    - `metric` (object, required)
      - `data` (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/create_client_event.json).
    - `profile` (object, required)
      - `data` (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/create_client_event.json).

### Example request body

```json
{
  "data": {
    "type": "event",
    "attributes": {
      "properties": {
        "Brand": "Kids Book",
        "ProductID": 1111,
        "ProductName": "Winnie the Pooh"
      },
      "time": "2022-11-08T00:00:00+00:00",
      "value": 9.99,
      "value_currency": "USD",
      "metric": {
        "data": {
          "type": "metric",
          "attributes": {
            "name": "Viewed Product"
          }
        }
      },
      "profile": {
        "data": {
          "type": "profile",
          "attributes": {
            "email": "sarah.mason@klaviyo-demo.com",
            "phone_number": "+15005550006",
            "first_name": "Sarah",
            "last_name": "Mason",
            "organization": "Example Corporation",
            "locale": "en-US",
            "title": "Regional Manager",
            "image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
            "properties": {
              "pseudonym": "Dr. Octopus"
            }
          }
        }
      }
    }
  }
}
```

## Responses

### 202: Success

This response has no body.

### 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"
      }
    }
  ]
}
```
