import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.runs.steps.list({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "list",
"has_more": false,
"data": [
{
"id": "s1a2b3c4-d5e6-7890-abcd-ef1234567890",
"step_id": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:01:00.000Z",
"created_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "s2b3c4d5-e6f7-8901-bcde-f12345678901",
"step_id": "e2f3a4b5-c6d7-8901-bcde-f23456789012",
"type": "send_email",
"status": "running",
"started_at": "2025-10-01T12:01:00.000Z",
"completed_at": null,
"created_at": "2025-10-01T12:01:00.000Z"
}
]
}
Retrieve a list of workflow run steps.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.runs.steps.list({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "list",
"has_more": false,
"data": [
{
"id": "s1a2b3c4-d5e6-7890-abcd-ef1234567890",
"step_id": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:01:00.000Z",
"created_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "s2b3c4d5-e6f7-8901-bcde-f12345678901",
"step_id": "e2f3a4b5-c6d7-8901-bcde-f23456789012",
"type": "send_email",
"status": "running",
"started_at": "2025-10-01T12:01:00.000Z",
"completed_at": null,
"created_at": "2025-10-01T12:01: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.runs.steps.list({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "list",
"has_more": false,
"data": [
{
"id": "s1a2b3c4-d5e6-7890-abcd-ef1234567890",
"step_id": "d1e2f3a4-b5c6-7890-abcd-ef1234567890",
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:01:00.000Z",
"created_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "s2b3c4d5-e6f7-8901-bcde-f12345678901",
"step_id": "e2f3a4b5-c6d7-8901-bcde-f23456789012",
"type": "send_email",
"status": "running",
"started_at": "2025-10-01T12:01:00.000Z",
"completed_at": null,
"created_at": "2025-10-01T12:01:00.000Z"
}
]
}
Was this page helpful?