Scheduled Jobs
Scheduled Jobs (/schedule) lets you define recurring tasks that run on a cron schedule or can be triggered manually.
Job fields
| Field | Description |
|---|---|
name |
Job display name |
description |
What this job does |
action |
Action type (see below) |
schedule |
Cron expression (e.g. 0 9 * * 1-5 = weekdays at 9am) |
enabled |
Whether the job runs on schedule |
config |
Action-specific configuration object |
Action types
| Action | What it does |
|---|---|
agent_run |
Runs an agent with a fixed message |
webhook_dispatch |
Fires a webhook event to Convoy |
http_request |
Makes an outbound HTTP request |
Agent run action
{ "action": "agent_run", "config": { "agentId": "agent_...", "message": "Summarize all open tickets from yesterday" }}Webhook dispatch action
{ "action": "webhook_dispatch", "config": { "eventType": "scheduled.daily_report", "payload": { "reportDate": "{{date}}" } }}HTTP request action
{ "action": "http_request", "config": { "url": "https://api.example.com/trigger", "method": "POST", "headers": { "Authorization": "Bearer token" }, "body": { "source": "ltg-portal" } }}Cron schedule syntax
Standard 5-field cron:
┌─────── minute (0–59)│ ┌───── hour (0–23)│ │ ┌─── day of month (1–31)│ │ │ ┌─ month (1–12)│ │ │ │ ┌ day of week (0–7, 0 and 7 = Sunday)│ │ │ │ │* * * * *Common examples:
| Expression | Meaning |
|---|---|
0 9 * * 1-5 |
Weekdays at 9:00 AM |
*/15 * * * * |
Every 15 minutes |
0 0 * * * |
Daily at midnight |
0 8 1 * * |
First of every month at 8 AM |
Manual triggers
Click Run Now on any job to trigger it immediately regardless of schedule. The run appears in the execution history.
Run history
The job detail view shows the last 100 executions:
- Start time and duration
- Status (success / error)
- Output or error message
Click any run to see full logs.
Enabling / disabling
Toggle the Enabled switch to pause a job without deleting it. Disabled jobs can still be run manually.
API
| Method | Path | Description |
|---|---|---|
GET |
/api/jobs |
List all jobs |
GET |
/api/jobs/:id |
Get job + config |
POST |
/api/jobs |
Create job |
PUT |
/api/jobs/:id |
Update job |
DELETE |
/api/jobs/:id |
Delete job and history |
POST |
/api/jobs/:id/run |
Trigger manually |
GET |
/api/jobs/:id/runs |
Get run history |
DELETE |
/api/jobs/:id/runs |
Clear run history |