Automations
Delete Inbox Automations
Deletes the rules that match accountId, name or both. You must pass at least one of them.
DELETE
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
accountId?stringLength
1 <= lengthname?stringDeletes rules whose name contains this text. Matching ignores case.
Length
1 <= lengthDeleted
application/json- response
deleted*integerExample Request
import { Configuration, EngagementApi } from "@onepostly/sdk";const engagementApi = new EngagementApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await engagementApi.deleteAutomations({ accountId: "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", name: "guide",});console.log(response);Example Response
{ "deleted": 0}