> ## 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.

# Activate or pause workflow

> Toggle active or paused production state for a workflow.

Toggles the operational state of an existing workflow. Activating a workflow registers recurring cron timers or webhook triggers for live event processing. Pausing unregisters active listeners without deleting the workflow graph.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | **Yes** | Unique identifier of the workflow (`wkf_...`). |

### Request Body

| Field | Type | Required | Description |
| - | - | - | - |
| `isActive` | `boolean` | **Yes** | `true` to activate production triggers, `false` to pause execution. |

### cURL Example

```bash theme={null}
# Activate workflow
curl -X POST "https://posttu.com/api/v1/workflow/wkf_abc123/active" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "isActive": true }'
```

### Response Example

```json theme={null}
{
  "data": {
    "id": "wkf_abc123",
    "isActive": true,
    "updatedAt": "2026-07-29T22:17:00.000Z"
  },
  "success": true
}
```


## OpenAPI

````yaml openapi.json POST /api/v1/workflow/{id}/active
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/{id}/active:
    post:
      tags:
        - Workflow
      summary: Activate or deactivate a workflow
      parameters:
        - schema:
            type: string
            description: Workflow ID
            example: wkf_123abc
          required: true
          description: Workflow ID
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetWorkflowActive'
      responses:
        '200':
          description: Updated workflow
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowActivateResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SetWorkflowActive:
      type: object
      properties:
        id:
          type: string
          description: Workflow ID
          example: wkf_123abc
        isActive:
          type: boolean
          description: Whether to activate or deactivate
          example: true
      required:
        - id
        - isActive
    WorkflowActivateResponse:
      type: object
      properties:
        id:
          type: string
          description: Workflow ID
        isActive:
          type: boolean
          description: Updated active status
        message:
          type: string
          description: Status message
      required:
        - id
        - isActive
  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.