---
title: "Send an event"
method: POST
path: "/v1/events/send"
tags: ["Events"]
---

# Send an event

`POST /v1/events/send`

Send events to trigger workflows.

## Headers

- `Idempotency-Key` string

## Request body

- union
  - object
    - `email` string, required — The contact's email address. **Required if `userId` is not provided.**
    - `userId` string — The contact's unique user ID. **Required if `email` is not provided.**
    - `eventName` string, required — The name of the event.
    - `eventProperties` object — An object containing event property data for the event, available in emails sent by the event.
    - `mailingLists` MailingListSubscriptions — Manage mailing list subscriptions. Include key-value pairs of mailing list IDs and a `boolean` denoting if the contact should be added (`true`) or removed (`false`) from the list.
  - object
    - `email` string — The contact's email address. **Required if `userId` is not provided.**
    - `userId` string, required — The contact's unique user ID. **Required if `email` is not provided.**
    - `eventName` string, required — The name of the event.
    - `eventProperties` object — An object containing event property data for the event, available in emails sent by the event.
    - `mailingLists` MailingListSubscriptions — Manage mailing list subscriptions. Include key-value pairs of mailing list IDs and a `boolean` denoting if the contact should be added (`true`) or removed (`false`) from the list.

## Response `200`

Successful send.

- EventSuccessResponse
  - `success` boolean, required

## Other responses

- `400` — Bad request (e.g. `eventName` is missing).
- `405` — Wrong HTTP request method.
- `409` — Idempotency key has been used.

---

[API](https://skmtc.net/loops/apis/loops-openapi-spec.md) · [All operations](https://skmtc.net/loops/apis/loops-openapi-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loops/loops-openapi-spec/revisions/9cc087257f0d/schema)
