Create Workflow
Creates a new workflow for alert handling and notifications. Workflows define how alerts are processed and routed to various integrations like Slack, PagerDuty, webhooks, etc.
Endpoint
POST /api/workflows/create
Authentication
This endpoint requires API key authentication.
Headers
Authorization
Bearer <YOUR_API_KEY>
Your groundcover API key
Content-Type
text/plain
The request body should be raw YAML
Request Body
The request body should contain raw YAML defining the workflow configuration. The YAML structure should include:
id: Unique identifier for the workflowdescription: Human-readable descriptiontriggers: Array of trigger conditionsactions: Array of actions to perform when triggeredname: Display name for the workflowconsts(optional): Constants and helper variables
Example Request
Response
Workflow YAML Structure
Basic Structure
Choosing Integration Providers
To route alerts to a specific integration (Slack, PagerDuty, webhook, etc.), use the config field in the provider section to reference your configured integration by name.
Example: Slack Integration
Provider Configuration
config: '{{ providers.integration-name }}'- References a specific integration you've configured in groundcovertype- Specifies the integration type (slack, webhook, pagerduty, opsgenie)Replace
integration-namewith your actual integration name.
The integration name must match the name of an integration you've previously configured in your groundcover workspace.
References
For workflow examples and advanced configurations, see the groundcover workflow examples documentation.
Last updated
