Create cron job
Cron Jobs
Create cron job
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 does
Code Environment: Your JavaScript code has access to these APIs:
fetch: HTTP client for external APIsemail: Send notificationsldap: Authenticate and search LDAP directories from the host runtimeenv: Environment variablessecrets: Encrypted secret values
Access Requirements:
- Owner permissions required
- Job created in your organization
Security:
- Code runs in secure sandbox with 5-minute timeout
- No file system access, limited to provided APIs
- Return values stored but not exposed in this response
POST
Create cron job
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful response
Available options:
5m, 10m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w 
