---
title: "Dynamic Events"
method: POST
path: "/v1/projects/{projectID}/events/dynamic"
tags: ["Events"]
---

# Dynamic Events

`POST /v1/projects/{projectID}/events/dynamic`

This endpoint does not require creating endpoint and subscriptions ahead of time. Instead, you supply the endpoint and the payload, and Convoy delivers the events

## Path parameters

- `projectID` string, required

## Request body

- ModelsDynamicEvent
  - `acknowledged_at` string
  - `custom_headers` object — Specifies custom headers you want convoy to add when the event is dispatched to your endpoint
  - `data` object — Data is an arbitrary JSON value that gets sent as the body of the webhook to the endpoints
  - `event_type` string — Event Type is used for filtering and debugging e.g invoice.paid
  - `event_types` string[] — A list of event types for the subscription filter config
  - `idempotency_key` string — Specify a key for event deduplication
  - `secret` string — Endpoint's webhook secret. If not provided, Convoy autogenerates one for the endpoint.
  - `url` string — URL is the endpoint's URL prefixed with https. non-https urls are currently not supported.

## Response `201`

Created

- HandlersStub

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

## Changes

- **2024-07-12** (v3) `59336767e79a` — 2 breaking, 2 info
  - the `data` request property type changed from `array` to `object`
  - removed the success response with the status `200`
  - added the new optional request property `acknowledged_at`
  - added the success response with the status `201`
- **2024-03-26** (v3) `28d285e4302c` — 3 warning, 1 info
  - removed the optional property `allOf[#/components/schemas/util.ServerResponse]/data` from the response with the `400` status
  - removed the optional property `allOf[#/components/schemas/util.ServerResponse]/data` from the response with the `401` status
  - removed the optional property `allOf[#/components/schemas/util.ServerResponse]/data` from the response with the `404` status
  - api operation id `CreateDynamicEvent` was added
- **2024-02-08** (v3) `52443da83eda` — 1 info
  - added the new optional request property `custom_headers`
- **2024-01-24** (v3) `ee338c3c9da6` — 3 warning, 6 info
  - removed the request property `endpoint`
  - removed the request property `event`
  - removed the request property `subscription`
  - added the new optional request property `data`
  - …5 more
- **2023-07-28** (v3) `2fc887538896` — 1 info
  - added the new optional request property `event/idempotency_key`

[Change history](https://skmtc.dev/getconvoy/apis/convoy-api-reference/changes/v1/projects/:projectID/events/dynamic/post.md)

---

[API](https://skmtc.dev/getconvoy/apis/convoy-api-reference.md) · [All operations](https://skmtc.dev/getconvoy/apis/convoy-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getconvoy/convoy-api-reference/revisions/de665d0e2fc3/schema)
