---
title: "Get current workflow code"
method: GET
path: "/workflows/{workflow_id}/code"
tags: ["workflows"]
---

# Get current workflow code

`GET /workflows/{workflow_id}/code`

Returns the source code of the workflow's current revision, scoped to the caller's org.

## Path parameters

- `workflow_id` string, uuid, required — workflow identifier

## Response `200`

OK

- WorkflowGetCodeResponse — Returned from GET /workflows/:id/code.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `revision` integer, required — Current revision number, or 0 when no revisions exist.
  - `revision_id` string, nullable, required — Current revision's id, or null when no revisions exist.
  - `source` string, required — Current revision's Python source.
  - `updated_at` string, date-time, required — Created_at of the current revision, or the workflow's update_date when no revisions exist.

## Other responses

- `default` — Error

## Changes

- **2026-08-17** `e2261ff54e62` — 1 info
  - the endpoint scheme security `bearerAuth` was removed from the API
- **2026-07-23** `5a989777701c` — 1 breaking
  - for the `path` request parameter `workflow_id`, the type/format was changed from `string`/`` to `string`/`uuid`

[Change history](https://skmtc.dev/axilioai/apis/axilio-api/changes/workflows/:workflow_id/code/get.md)

---

[API](https://skmtc.dev/axilioai/apis/axilio-api.md) · [All operations](https://skmtc.dev/axilioai/apis/axilio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/axilioai/axilio-api/revisions/8a66f81813b3/schema)
