import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.runs.get({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "workflow_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"trigger": {
"event_name": "user.created",
"payload": { "email": "jane@example.com" }
},
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:05:00.000Z",
"created_at": "2025-10-01T12:00:00.000Z"
}
Retrieve a single workflow run.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.workflows.runs.get({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "workflow_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"trigger": {
"event_name": "user.created",
"payload": { "email": "jane@example.com" }
},
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:05:00.000Z",
"created_at": "2025-10-01T12: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.runs.get({
workflowId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "workflow_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"trigger": {
"event_name": "user.created",
"payload": { "email": "jane@example.com" }
},
"started_at": "2025-10-01T12:00:00.000Z",
"completed_at": "2025-10-01T12:05:00.000Z",
"created_at": "2025-10-01T12:00:00.000Z"
}
Was this page helpful?