Events
Create and manage Events through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /events | Retrieve a list of events |
POST | /events | Create an event |
POST | /events/send | Send 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.