Skip to main content
POST
https://api.resend.com
/
events
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.events.create({
  name: 'user.created',
  schema: {
    type: 'object',
    properties: {
      plan: { type: 'string' },
    },
  },
});
{
  "object": "event",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Workflows are currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-canary.0
Contact us if you’re interested in testing this feature.

Body Parameters

name
string
required
The name of the event.
schema
object
An optional schema definition for the event payload.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.events.create({
  name: 'user.created',
  schema: {
    type: 'object',
    properties: {
      plan: { type: 'string' },
    },
  },
});
{
  "object": "event",
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}