Automations
Create and manage Automations through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /automations | Retrieve a list of automations |
POST | /automations | Create an automation |
GET | /automations/{automation_id} | Retrieve a single automation |
PATCH | /automations/{automation_id} | Update an automation |
DELETE | /automations/{automation_id} | Delete an automation |
POST | /automations/{automation_id}/duplicate | Duplicate an automation |
POST | /automations/{automation_id}/stop | Stop an automation |
GET | /automations/{automation_id}/runs | Retrieve a list of automation runs |
GET | /automations/{automation_id}/runs/{run_id} | Retrieve a single automation run |
Example
Retrieve a list of automations, 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.automations.list();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.