---
title: "Generate event v2"
method: POST
path: "/api/v2/event"
tags: ["Events"]
---

# Generate event v2

`POST /api/v2/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/v2/event`
- Auth: HTTP basic

Sends any backend <a href="${v2genevent_htuapi.post.link}">events</a> from websites and mobile apps to our system. Secure for sensitive data.For sending frontend events, mobile apps should use <a href="${v2genevent_appintegrate.post.link}">SDK</a>.The request example is available <a href="${v2genevent_evexample.post.link}">at the link</a>.<ul><li><b>NOTE:</b> The maximum size of event data in the request body is <b>20 KB</b>.</li></ul>

## Request body

- Event
  - `eventTypeKey` string, required: Unique identifier for the event type, e.g., PageViewed. <a href="${v2genevent_eventtypekey.post.link}">Read more...</a>
  - `params` EventParameter[]: An array of objects — lists with key-value pairs containing contact identifiers (required) and event-specific parameters (optional).<a href="${v2genevent_valevntprmts.post.link}">Read more...</a>
    - `name` string
    - `value` object

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