import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"name": "Welcome series",
"status": "enabled",
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "662892b2-4270-4130-a186-33a19752319d",
"name": "Re-engagement",
"status": "disabled",
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
Retrieve a list of workflows.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"name": "Welcome series",
"status": "enabled",
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "662892b2-4270-4130-a186-33a19752319d",
"name": "Re-engagement",
"status": "disabled",
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
npm install resend@6.10.0-preview-workflows.1
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"name": "Welcome series",
"status": "enabled",
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "662892b2-4270-4130-a186-33a19752319d",
"name": "Re-engagement",
"status": "disabled",
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
Was this page helpful?