---
title: "Get latest workflow draft"
method: GET
path: "/api/workflows/{workflow_id}/"
tags: ["workflows"]
---

# Get latest workflow draft

`GET /api/workflows/{workflow_id}/`

Get the latest editable (draft) version of a workflow.

## Path parameters

- `workflow_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Successful response for Get workflow

- WorkflowsGetWorkflowResponse200
  - `id` string
  - `workflow_id` string
  - `version` integer
  - `name` string
  - `description` string, nullable
  - `type` 'automations' | 'monitors' | 'evaluators'
  - `trigger_event_type` string, nullable
  - `tasks` object[]
  - `graph` object, nullable
  - `workflow_activities` ApiWorkflowsWorkflowIdGetResponsesContentApplicationJsonSchemaWorkflowActivitiesItems[]
    - `timestamp` string, date-time
    - `feature_type` string
    - `object_id` string
    - `activity_type` string
    - `message` string
  - `is_enabled` boolean
  - `is_starred` boolean
  - `is_read_only` boolean
  - `has_async_steps` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `deployed_version` integer, nullable

## Other responses

- `401` — Unauthorized - Missing/invalid authentication
- `404` — Workflow not found

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/58a2eabdccf3/schema)
