API Reference
Workflow
Endpoints for working with Workflow resources in klink.cloud. All requests are authenticated with your API token — see Authentication.
- GET/api/v1/workflows
List workflows
Returns your workflow automations in pages, in priority order (the order in which they are evaluated). The list includes SLA policies (
typeslaandticket_sla); filter withtype=workflowto leave them out. - POST/api/v1/workflows
Create a workflow
Creates a workflow automation: when one of the
triggerevents happens and theconditionsmatch, theactionsrun in order. - GET/api/v1/workflows/schema
Get the workflow schema
Returns the catalogue a workflow is built from: every trigger, condition and action with its id, the operators a condition accepts and the shape of the value each one takes, plus the rules for combining them. Read it before creating or updating a workflow; the same catalogue is used to validate those requests.
- GET/api/v1/workflows/{id}
Get a workflow
Returns one workflow with its trigger, conditions and actions. SLA policies (
typeslaandticket_sla) can be read here too. - PATCH/api/v1/workflows/{id}
Update a workflow
Changes the name, trigger, conditions or actions of a workflow, or disables it. Send only the fields you want to change;
trigger,conditionsandactionsare each replaced as a whole. When any of them or the name changes, the whole workflow is validated again as on create.