Overview
Create a new cron job that will execute according to the specified cron expression.Parameters
string
required
The full URL of the webhook endpoint to call. Must be a valid HTTP/HTTPS URL.
string
default:"POST"
HTTP method to use for the webhook request. Options:
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. Defaults to POST.string
required
Cron expression defining the schedule (e.g.,
0 9 * * * for daily at 9 AM). See the Cron Expressions guide for more information.string | null
Timezone for the cron schedule (e.g.,
America/New_York). null or omit for UTC.object | null
Custom headers to include in the webhook request. Object with string keys and values.
object | null
Payload to send with the webhook request. Can be any JSON-serializable object.
object | null
Retry configuration for failed webhook attempts.
boolean
default:"true"
Whether the cron job should be active immediately. Defaults to
true. Set to false to create an inactive cron that won’t execute until activated.Response
Cron
required
The created cron job object.
Errors
ValidationError: If cron expression is invalid or webhook URL is invalidUnauthorizedError: If API key is invalid or missing