import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.runs.get({
automationId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "automation_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:05:00.000000+00",
"created_at": "2025-10-01 12:00:00.000000+00",
"steps": [
{
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:00:01.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:00.000000+00"
},
{
"type": "send_email",
"status": "completed",
"started_at": "2025-10-01 12:00:01.000000+00",
"completed_at": "2025-10-01 12:00:02.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:01.000000+00"
}
]
}
Retrieve a single automation run.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.runs.get({
automationId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "automation_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:05:00.000000+00",
"created_at": "2025-10-01 12:00:00.000000+00",
"steps": [
{
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:00:01.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:00.000000+00"
},
{
"type": "send_email",
"status": "completed",
"started_at": "2025-10-01 12:00:01.000000+00",
"completed_at": "2025-10-01 12:00:02.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:01.000000+00"
}
]
}
npm install resend@6.10.0-preview-workflows.3
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.runs.get({
automationId: 'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
runId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
});
{
"object": "automation_run",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:05:00.000000+00",
"created_at": "2025-10-01 12:00:00.000000+00",
"steps": [
{
"type": "trigger",
"status": "completed",
"started_at": "2025-10-01 12:00:00.000000+00",
"completed_at": "2025-10-01 12:00:01.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:00.000000+00"
},
{
"type": "send_email",
"status": "completed",
"started_at": "2025-10-01 12:00:01.000000+00",
"completed_at": "2025-10-01 12:00:02.000000+00",
"output": null,
"error": null,
"created_at": "2025-10-01 12:00:01.000000+00"
}
]
}
Was this page helpful?