Workflow

List workflows

GET/api/v1/workflows

Returns your workflow automations in pages, in priority order (the order in which they are evaluated). The list includes SLA policies (type sla and ticket_sla); filter with type=workflow to leave them out.

Each item is a summary. Call GET /api/v1/workflows/{id} for the trigger, conditions and actions.

Required ability: workflows:read.

Request

Authorization

Bearer Token

Provide your API token in the Authorization header. See Authentication to issue one.

Example:Authorization: Bearer ********************

Query Params
  • typestringoptional

    Only return workflows of this type.

    Allowed values:"workflow", "sla", "ticket_sla"

  • enabledbooleanoptional

    Only return enabled (true) or disabled (false) workflows.

  • pageintegeroptional

    Page number, starting at 1.

    Default:1

    Example:1

  • pageSizeintegeroptional

    Workflows per page.

    Default:20

    Example:20

Responses

200

One page of workflows.

  • workflowsarray[WorkflowSummary]required
    Child attributes
    • idstring<uuid>optional
    • namestringoptional
    • typestringoptional

      Allowed values:"workflow", "sla", "ticket_sla"

    • priorityinteger | nulloptional

      Position in the evaluation order within its type; 1 is first.

    • enabledbooleanoptional
    • custombooleanoptional

      true for a workflow that agents run by hand (trigger when_manually_triggered).

    • updatedAtstring<date-time> | nulloptional
  • pageintegerrequired
  • pageSizeintegerrequired
  • totalintegerrequired

    Number of workflows that match the filters.

400

A query parameter is not valid.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired
401

The API token is missing or invalid.

403

The API token does not have the ability this endpoint requires. See "Token abilities" in the introduction.

  • messagestringrequired
  • errorstringoptional
  • statusCodeintegerrequired