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

# Generate events v1

`POST /api/v1/event`

> **Deprecated.**

The method is used for generating events in the account to be used for starting a workflow or being taken into account for segmentation.<br/>Max. size of content for events sent in the request body is 20 kB.<br/>To learn more, read <a href="https://docs.esputnik.com/docs/sending-orders-via-api">Order management via events.</a>

## Request body

- EventDto
  - `eventTypeKey` string, required — Event type ID key. If no event type exists with this key, a new event is created.<br> All characters are allowed except < ; ’ \ / | " ` ' ^ ? ! , > <br/>Max length: 100 symbols
  - `keyValue` string — 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> If this parameter is not set, params must contain one of the following contact identifiers:<br/>- contactId <br/>- externalCustomerId <br/>- email <br/>- phone <br/>- pushToken: web or mobile <br/>All characters are allowed except the following ones < ; ’ \ / | " ` ' ^ ? ! , > <br/>Max length: 300 symbols
  - `params` Parameter[] — 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.</div>
    - `name` string
    - `value` string

## 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)
