Automations

Create and manage Automations through the Resend API.

Operations

MethodEndpointDescription
GET/automationsRetrieve a list of automations
POST/automationsCreate 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}/duplicateDuplicate an automation
POST/automations/{automation_id}/stopStop an automation
GET/automations/{automation_id}/runsRetrieve 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.