Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Send an event

POST/events/sendSend an event

Request body

application/json
objectSendEventRequest
contact_idstring · uuid

The ID of the contact to associate with this event. Exactly one of `contact_id` or `email` must be provided.

emailstring · email

The email address to associate with this event. Exactly one of `contact_id` or `email` must be provided.

eventstringrequired

The name of the event to send.

payloadobject

An optional payload of key/value pairs to include with the event.

Example request
{
  "contact_id": "00000000-0000-0000-0000-000000000000",
  "email": "user@example.com",
  "event": "string",
  "payload": {
    "additionalProp1": null
  }
}

Responses

202Acceptedapplication/json
objectSendEventResponse
eventstring

The name of the event that was sent.

objectstring

Type of the response object.

Example response
{
  "event": "string",
  "object": "event"
}
Documentation menu