---
title: "Create an event"
method: POST
path: "/v1/projects/{projectID}/events"
tags: ["Events"]
---

# Create an event

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

This endpoint creates an endpoint event
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

- ModelsCreateEvent
  - `app_id` string — Deprecated but necessary for backward compatibility.
  - `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
  - `endpoint_id` string — Specifies the endpoint to send this event to. Required unless the deprecated app_id is provided.
  - `event_type` string — Event Type is used for filtering and debugging e.g invoice.paid
  - `idempotency_key` string — Specify a key for event deduplication

## 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 `CreateEndpointEvent` was added
- **2024-01-30** `5a219dba9f40` — 1 breaking, 2 info
  - removed the success response with the status `201`
  - api operation id `CreateEndpointEvent` 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/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)
