Scheduling
Add Schedule (Clocked)
Create a one-time scheduled task that executes a webhook or workflow at a specific date and time
POST
Create a one-time scheduled task that executes a webhook or workflow at a specific date and time. Clocked schedules are automatically one-off tasks (they execute once and then complete).
Base URL
All API requests should be made to:Example request
Request body
| Field | Type | Required | Description |
|---|---|---|---|
clocked_run_at | string | Yes | ISO 8601 datetime string for when to execute (e.g., "2024-12-25T00:00:00Z") |
clocked_timezone | string | Yes | IANA timezone identifier (use Get Timezone Options to get valid values) |
schedule_to | string | Yes | Target type: "webhook" or "workflow" |
model_to_schedule_uuid | string | Yes | UUID of the webhook or workflow template to schedule (as per schedule_to) |
initial_context_template | object | No | Key-value pairs passed as {{ initial.key }} variables to the webhook/workflow |
Example response
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the schedule was created successfully |
details | string | Success message |
DateTime Format
Theclocked_run_at field accepts ISO 8601 datetime strings:
- Format:
YYYY-MM-DDTHH:mm:ssZorYYYY-MM-DDTHH:mm:ss+HH:mm - Examples:
"2024-12-25T00:00:00Z"- UTC timezone"2024-12-25T00:00:00+05:30"- With timezone offset"2024-12-25T09:30:00Z"- Specific time
clocked_timezone is used to interpret the datetime if no timezone is specified in the string.
Timezone Support
HookPulse supports all 500+ IANA timezones. Use the Get Timezone Options endpoint to get the complete list.One-Off Tasks
Clocked schedules are automatically one-off tasks that execute once at the specified time. After execution, the schedule status becomes"completed". The is_one_off_task field is not required for clocked schedules as they are always one-time executions.
Initial Context Template
Theinitial_context_template object allows you to pass variables to your webhook or workflow that can be accessed using {{ initial.key }} syntax:
- In request body:
{{ initial.key }}will be replaced with the value - In headers:
{{ initial.key }}can be used in header values - In query params:
{{ initial.key }}can be used in query parameters - In path:
{{ initial.key }}can be used in URL paths
- System secrets:
{{ #secret_key }}for vault secrets - Workflow step responses:
{{ step.response.variable }}in workflows
Use Cases
- Scheduled Maintenance: Run maintenance tasks at specific times
- Future Operations: Schedule operations for future dates
- One-Time Events: Execute tasks for specific events
- Time-Sensitive Operations: Operations that must run at exact times
- Event-Based Triggers: Trigger workflows at specific event times
Examples
Christmas Day Task
New Year’s Eve at Midnight
Specific Business Time
Related Documentation
- Scheduling Overview - Learn about all scheduling types
- Get Timezone Options - Get list of available timezones
- Add Interval Schedule - Create recurring interval schedules
Authorizations
API key for authentication. Get this from your dashboard by selecting a brand and going to API Keys section.
Brand UUID for authentication. Get this from your dashboard after adding a brand - it will be displayed in the UI.
Body
application/json
Clocked schedule configuration
ISO 8601 datetime string for when to execute
IANA timezone identifier
Whether this is a one-time task
Target type: 'webhook' or 'workflow'
Available options:
webhook, workflow UUID of the webhook or workflow template to schedule
Key-value pairs passed as {{ initial.key }} variables to the webhook/workflow

