---
title: "List workflow templates"
method: GET
path: "/v1/farm/{farm_id}/workflow-templates"
tags: ["workflow-templates"]
---

# List workflow templates

`GET /v1/farm/{farm_id}/workflow-templates`

## Request

- Base URL: `https://api.ranch.bot`
- URL: `https://api.ranch.bot/v1/farm/{farm_id}/workflow-templates`
- Auth: HTTP bearer

External credential scopes: read:farms. Minimum farm role: READER. Template labels, visibility, requiredness, defaults and units are configuration; core field meanings never change.

## Path parameters

- `farm_id` string, uuid, required

## Query parameters

- `skip` integer
- `take` integer
- `workflow` string

## Response `200`

Success

- object
  - `total` integer, required
  - `records` WorkflowTemplate[], required
    - `id` string, uuid, required
    - `workflow` string, required
    - `name` string, required
    - `is_active` boolean, required
    - `is_default` boolean, required
    - `metadata_revision` integer, required
    - `current_version` WorkflowTemplateVersion
      - `id` string, uuid, required
      - `version` integer, required
      - `definition` WorkflowTemplateDefinition, required
        - `schema_version` 1, required
        - `workflow` 'record_birth', required
        - `name` string, required
        - `fields` WorkflowTemplateField[], required
          - `key` string, required
          - `scope` 'event' | 'offspring', required
          - `label` string, required
          - `required` boolean
          - `hidden` boolean
          - `default` object
          - `unit` 'kg' | 'lb'
          - `type` 'text' | 'number' | 'boolean' | 'date' | 'choice'
          - `choices` object[]
            - `key` string, required
            - `label` string, required
      - `created_at` string, date-time
    - `versions` object[]
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Request validation failed.
- `401`: Missing/invalid authentication or insufficient farm role.
- `403`: Missing required scope or credential type is disallowed.
- `404`: Resource or active farm membership not found.
- `409`: Concurrent change, archived template, expired preview, or conflicting approval.

---

[API](https://skmtc.dev/ranch/apis/ranch-bot-http-api.md) · [All operations](https://skmtc.dev/ranch/apis/ranch-bot-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ranch/apis/ranch-bot-http-api/revisions/24109d33fa02?raw)
