Skip to main content
POST
Create a standing optimisation rule (see get_automation_rule_schema). Two-step: the first call validates the rule, dry-runs it, and returns a preview + confirmationToken; after the user approves, call again with the token to save. suggest_only rules queue matches for approval; auto_run rules act on their own and need an owner/admin.

Authorizations

Authorization
string
header
required

AdStellar API key (ast_live_...)

Body

application/json
rule
object
required

Rule object matching get_automation_rule_schema.

workspaceId
string<uuid>

Workspace to act in (must be granted to this credential). Omit for the primary workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
confirmationToken
string

Omit on the first call to get a preview + token; pass the token back to execute.

Response

Tool result