---
title: "Bulk Create Events"
description: "How to call Bulk Create Events (POST /api/event-bulk-create-jobs) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/bulk_create_events"
revision: "2026-10-15"
operationId: "bulk_create_events"
aliases: ["create_event_bulk_create_job"]
method: "POST"
endpoint: "https://a.klaviyo.com/api/event-bulk-create-jobs"
authentication: "privateKey"
scopes: ["events:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/bulk_create_events.json"
related: ["https://developers.klaviyo.com/en/reference/events/llms.txt","https://developers.klaviyo.com/en/reference/get_events.md","https://developers.klaviyo.com/en/reference/get_event.md","https://developers.klaviyo.com/en/reference/create_event.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"]
---

# Bulk Create Events

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

```http
POST https://a.klaviyo.com/api/event-bulk-create-jobs
```

Create a batch of events for one or more profiles.

Note that this endpoint allows you to create new profiles or update existing profile properties.

At a minimum, profile and metric objects should include at least one profile identifier (e.g., `id`, `email`, or `phone_number`) and the metric `name`, respectively.

Accepts up to 1,000 events per request. The maximum allowed payload size is 5MB. A single string cannot exceed 100KB.

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

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/event-bulk-create-jobs' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "event-bulk-create-job",
    "attributes": {
      "events-bulk-create": {
        "data": [
          {
            "type": "event-bulk-create",
            "attributes": {
              "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"
                    }
                  }
                }
              },
              "events": {
                "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"
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}'
```

### CLI

```bash
klaviyo events bulk-create-events \
  -d '{
  "data": {
    "type": "event-bulk-create-job",
    "attributes": {
      "events-bulk-create": {
        "data": [
          {
            "type": "event-bulk-create",
            "attributes": {
              "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"
                    }
                  }
                }
              },
              "events": {
                "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"
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}'
```

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.bulk_create_events(
    {
        "data": {
            "type": "event-bulk-create-job",
            "attributes": {
                "events-bulk-create": {
                    "data": [
                        {
                            "type": "event-bulk-create",
                            "attributes": {
                                "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",
                                            },
                                        },
                                    },
                                },
                                "events": {
                                    "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",
                                                        },
                                                    },
                                                },
                                            },
                                        },
                                    ],
                                },
                            },
                        },
                    ],
                },
            },
        },
    },
)
```

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.bulkCreateEvents(
  {
    data: {
      type: 'event-bulk-create-job',
      attributes: {
        eventsBulkCreate: {
          data: [
            {
              type: 'event-bulk-create',
              attributes: {
                profile: {
                  data: {
                    type: 'profile',
                    attributes: {
                      email: 'sarah.mason@klaviyo-demo.com',
                      phoneNumber: '+15005550006',
                      firstName: 'Sarah',
                      lastName: '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',
                      },
                    },
                  },
                },
                events: {
                  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,
                        valueCurrency: 'USD',
                        metric: {
                          data: {
                            type: 'metric',
                            attributes: {
                              name: 'Viewed Product',
                            },
                          },
                        },
                      },
                    },
                  ],
                },
              },
            },
          ],
        },
      },
    },
  },
)
```

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.bulk_create_events(
  {
    data: {
      type: 'event-bulk-create-job',
      attributes: {
        'events-bulk-create' => {
          data: [
            {
              type: 'event-bulk-create',
              attributes: {
                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',
                      },
                    },
                  },
                },
                events: {
                  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',
                            },
                          },
                        },
                      },
                    },
                  ],
                },
              },
            },
          ],
        },
      },
    },
  },
)
```

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->bulkCreateEvents(
    [
        'data' => [
            'type' => 'event-bulk-create-job',
            'attributes' => [
                'events-bulk-create' => [
                    'data' => [
                        [
                            'type' => 'event-bulk-create',
                            'attributes' => [
                                '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',
                                            ],
                                        ],
                                    ],
                                ],
                                'events' => [
                                    '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',
                                                        ],
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
);
```

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

## 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-bulk-create-job`
  - `attributes` (object, required)
    - `events-bulk-create` (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/bulk_create_events.json).

### Example request body

```json
{
  "data": {
    "type": "event-bulk-create-job",
    "attributes": {
      "events-bulk-create": {
        "data": [
          {
            "type": "event-bulk-create",
            "attributes": {
              "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"
                    }
                  }
                }
              },
              "events": {
                "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"
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}
```

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