import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Stop Automation
Stop a running automation.
POST
/
automations
/
:automation_id
/
stop
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Path Parameters
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.automations.stop(
'c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd',
);
{
"object": "automation",
"id": "c9b16d4f-ba6c-4e2e-b044-6bf4404e57fd",
"status": "disabled"
}
Was this page helpful?
⌘I