Triggers
Automate workflow execution with cron schedules and inbound webhooks.
Triggers
Linea supports two automated trigger types: Schedules (cron-based) and Webhooks (HTTP-based). Both are scoped to a space.
Schedules
All schedule endpoints: /v1/workspaces/:workspaceId/spaces/:spaceId/schedules
POST /v1/workspaces/:wId/spaces/:sId/schedules
Create a cron schedule for a workflow.
Body
| Field | Type | Description |
|---|---|---|
workflowId | uuid | Workflow to execute |
cronExpr | string | Standard cron expression (5-field) |
input | object? | Static input passed to each run |
enabled | boolean? | Defaults to true |
Response 201: schedule object
GET /v1/workspaces/:wId/spaces/:sId/schedules
List all schedules in the space.
Response 200: array of schedule objects
PATCH /v1/workspaces/:wId/spaces/:sId/schedules/:id
Update cron expression, input, or enabled state.
Body: any subset of { cronExpr, input, enabled }
Response 200: updated schedule object
DELETE /v1/workspaces/:wId/spaces/:sId/schedules/:id
Delete a schedule.
Response 204
Schedule Object
Standard 5-field cron syntax: minute hour day-of-month month day-of-week. Example: 0 8 * * 1-5 runs at 08:00 UTC on weekdays.
Webhooks
Management endpoints: /v1/workspaces/:workspaceId/spaces/:spaceId/webhooks
Public trigger endpoint: /v1/webhooks/:id/trigger
POST /v1/workspaces/:wId/spaces/:sId/webhooks
Create a webhook trigger for a workflow. Returns a secret: store it securely, it is shown only once.
Body
Response 201
GET /v1/workspaces/:wId/spaces/:sId/webhooks
List webhooks in the space. The secret field is never returned after creation.
Response 200: array of webhook objects (without secret)
DELETE /v1/workspaces/:wId/spaces/:sId/webhooks/:id
Delete a webhook.
Response 204
POST /v1/webhooks/:id/trigger (public)
Trigger a workflow via webhook. This endpoint is public (no Bearer token) but requires the x-webhook-secret header.
Headers
| Header | Required | Description |
|---|---|---|
x-webhook-secret | Yes | Secret returned at webhook creation time |
Body: arbitrary JSON, passed as input to the workflow execution
Response 201: execution object
Rotate your webhook secret by deleting the webhook and creating a new one. There is no secret-rotation endpoint.