---
title: "Generate past events V1"
method: POST
path: "/api/v1/past_events"
tags: ["Deprecated"]
deprecated: true
---

# Generate past events V1

`POST /api/v1/past_events`

> **Deprecated.**

The method is used for transferring the available event data from your CRM or other data store to our system.<br/>The workflows are not launched for these events. You can send up to 500 events per a request.<br/><a href="https://docs.esputnik.com/docs/sending-past-events">Learn more.</a>

## Request body

- BatchPastEvents
  - `events` PastEventDto[] — The list of the past events
    - `eventTypeKey` string, required — Event type ID. If no such event type exists, a new one is created.<br> All characters are allowed, except: < ; ’ \ / | " ` ' ^ ? ! , >
    - `keyValue` string, required — Event key. Determines event uniqueness.<br> The key must contain a unique value for each contact (for example, email, phone number, external contact id, etc.)<br> All characters are allowed, except < ; ’ \ / | " ` ' ^ ? ! , > <br> Max length: 300 symbols
    - `params` Parameter[] — The list of event parameters represented as an array of "key" - "value" pairs. The parameter keys are arbitrary. <br> Used in campaigns and for creating dynamic content in messages.
      - `name` string
      - `value` string
    - `occurred` string — Event date and time.

## Response `200`

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/revisions/1c4afd7ba72a/schema)
