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

# Dynamic Events

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

This endpoint creates a dynamic event without creating the endpoint and subscription ahead of time.
The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send.

## Path parameters

- `projectID` string, required

## Request body

- ModelsDynamicEvent
  - `custom_headers` object, nullable — Specifies custom headers you want convoy to add when the event is dispatched to your endpoint
  - `data` object, nullable — 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

- object
  - `message` string
  - `status` boolean
  - `data` ModelsEventQueuedResponse
    - `event_type` string
    - `idempotency_key` string
    - `uid` string — UID is the event id.

## Other responses

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

## Changes

> 60 revisions in range; 4 could not be searched.

- **2024-07-12** `b00279e91a82` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2024-03-26** `2ddfad646792` — 1 info
  - api operation id `CreateDynamicEvent` was added
- **2024-01-30** `5a219dba9f40` — 1 breaking, 2 info
  - removed the success response with the status `201`
  - api operation id `CreateDynamicEvent` removed and replaced with ``
  - added the success response with the status `200`

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

---

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