> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get workflow rules

> Get every workflow rule for a project. A rule moves a task to a column when an integration event fires.



## OpenAPI

````yaml /openapi.json get /workflow-rule/{projectId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /workflow-rule/{projectId}:
    get:
      tags:
        - Workflow Rules
      summary: Get workflow rules
      description: >-
        Get every workflow rule for a project. A rule moves a task to a column
        when an integration event fires.
      operationId: getWorkflowRules
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      responses:
        '200':
          description: List of workflow rules
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkflowRule'
        '400':
          description: Unknown project, or its workspace could not be determined
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No access to the project's workspace
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    WorkflowRule:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        integrationType:
          type: string
          description: The integration that emits the event, e.g. `github`.
        eventType:
          type: string
          description: >-
            The provider event that triggers the move, e.g.
            `pull_request.opened`.
        columnId:
          type: string
          description: The column tasks are moved to when the event fires.
        columnName:
          type:
            - string
            - 'null'
        columnSlug:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - integrationType
        - eventType
        - columnId
        - columnName
        - columnSlug
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````