Create a new scheduled automation job:
Required Fields:
name: Unique job name within organizationcode: JavaScript code to executeschedule: Execution schedule (5m, 10m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w)Optional Fields:
description: What this job doesCode Environment: Your JavaScript code has access to these APIs:
organization: Access to org data and sitesdb: Database operations (limited scope)fetch: HTTP client for external APIsemail: Send notificationsenv: Environment variablessecrets: Encrypted secret valuesAccess Requirements:
Security:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
5m, 10m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w