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

# List workflows

> Retrieve a paginated list of all automation workflows inside your organization.

Use this endpoint to query all workflows owned by your organization. You can filter by activation status (`isActive`), control page size with `limit`, and paginate through results using `cursor`.

### Query Parameters

| Field | Type | Description |
| - | - | - |
| `isActive` | `boolean` | Optional filter. Set `true` to return active workflows, `false` for paused workflows. |
| `limit` | `number` | Max items to return per page (default `50`, max `100`). |
| `cursor` | `string` | Optional cursor string for fetching the next page. |

### Response Example

```json theme={null}
{
  "data": [
    {
      "id": "wkf_abc123",
      "name": "Weekly Tech Digest",
      "description": "Fetches RSS items and posts a weekly summary",
      "isActive": true,
      "publishedVersionId": "ver_pub_1",
      "draftVersionId": "ver_draft_1",
      "createdAt": "2026-07-29T10:00:00.000Z",
      "updatedAt": "2026-07-29T12:00:00.000Z",
      "draftVersion": {
        "trigger": {
          "name": "schedule",
          "displayName": "Every Monday at 9 AM"
        },
        "_count": {
          "steps": 3
        }
      },
      "_count": {
        "runs": 24
      }
    }
  ],
  "nextCursor": null,
  "success": true
}
```


## OpenAPI

````yaml openapi.json GET /api/v1/workflow
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/workflow:
    get:
      tags:
        - Workflow
      summary: List workflows
      description: Retrieve a paginated list of workflows for the organization.
      parameters:
        - schema:
            type: number
            minimum: 1
            maximum: 100
            default: 50
            description: Max items to return
            example: 50
          required: false
          description: Max items to return
          name: limit
          in: query
        - schema:
            type: string
            description: Cursor for pagination
            example: cm9kZWFfc29tZS1jdXJzb3I
          required: false
          description: Cursor for pagination
          name: cursor
          in: query
        - schema:
            type:
              - boolean
              - 'null'
            description: Filter by active status
            example: true
          required: false
          description: Filter by active status
          name: isActive
          in: query
      responses:
        '200':
          description: Paginated list of workflows
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowListResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WorkflowListResponse:
      type: object
      properties:
        workflows:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowListItem'
          description: List of workflows
        nextCursor:
          type:
            - string
            - 'null'
          description: Pagination cursor
      required:
        - workflows
    WorkflowListItem:
      type: object
      properties:
        id:
          type: string
          description: Workflow ID
          example: wkf_abc123
        name:
          type: string
          description: Workflow name
          example: Daily Post Automation
        description:
          type:
            - string
            - 'null'
          description: Workflow description
          example: Automates daily posts to social media
        isActive:
          type: boolean
          description: Workflow active status
          example: true
        definition:
          type:
            - object
            - 'null'
          additionalProperties: {}
          description: >-
            Workflow definition JSON - contains trigger and step configurations.
            Structure depends on pieces used in the workflow.
          example:
            trigger:
              name: schedule
              settings:
                cron: 0 9 * *
            steps: []
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2024-01-15T10:00:00.000Z'
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp
          example: '2024-01-20T15:30:00.000Z'
        trigger:
          $ref: '#/components/schemas/WorkflowTrigger'
        _count:
          $ref: '#/components/schemas/WorkflowCount'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowTag'
          description: Workflow tags
      required:
        - id
        - name
        - description
        - isActive
        - definition
        - createdAt
        - updatedAt
        - trigger
    WorkflowTrigger:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
          description: Trigger ID
          example: trg_xyz789
        name:
          type: string
          description: Trigger name
          example: schedule
        displayName:
          type: string
          description: Display name
          example: Schedule Trigger
        settings:
          type: object
          additionalProperties: {}
          description: Trigger settings
          example:
            cron: 0 9 * * *
        cronExpression:
          type:
            - string
            - 'null'
          description: Cron expression
          example: 0 9 * * *
      required:
        - id
        - name
        - displayName
        - settings
      description: Workflow trigger
    WorkflowCount:
      type: object
      properties:
        steps:
          type: number
          description: Number of steps
          example: 5
        runs:
          type: number
          description: Number of runs
          example: 12
      required:
        - steps
        - runs
      description: Related counts
    WorkflowTag:
      type: object
      properties:
        id:
          type: string
          description: Tag ID
          example: tag_abc123
        name:
          type: string
          description: Tag name
          example: Important
        color:
          type: string
          description: Hex color
          example: '#FF5733'
      required:
        - id
        - name
        - color
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.