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

# Generate events v1

`POST /api/v1/event`

## Request

- Base URL: `https://yespo.io` (the document declares no server; this is the origin it was published from)
- URL: `https://yespo.io/api/v1/event`
- Auth: HTTP basic

> **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="${v1event.post.link}">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`

default response

---

[API](https://skmtc.dev/yespo/apis/yespo-api.md) · [All operations](https://skmtc.dev/yespo/apis/yespo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yespo/apis/yespo-api/revisions/b662f92b6c40?raw)
