Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Create an event

POST/eventsCreate an event

Request body

application/json
objectCreateEventRequest
namestringrequired

The name of the event. Cannot start with the reserved `resend:` prefix.

schemanull | object

An optional flat key/type map defining the event payload schema. Supported types are `string`, `number`, `boolean`, and `date`.

Example request
{
  "name": "string",
  "schema": {}
}

Responses

201OKapplication/json
objectCreateEventResponse
idstring · uuid

The ID of the created event.

objectstring

Type of the response object.

Example response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "object": "event"
}
Documentation menu