Events

Create and manage Events through the Resend API.

Operations

MethodEndpointDescription
GET/eventsRetrieve a list of events
POST/eventsCreate an event
POST/events/sendSend an event
GET/events/{identifier}Retrieve a single event
PATCH/events/{identifier}Update an event
DELETE/events/{identifier}Delete an event

Example

Retrieve a list of events, with the TypeScript SDK:

ts
import { Resend } from "@octridev/resend";

const client = new Resend({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.resend.com",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.events.list();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.