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

# Get current workflow code

`GET /workflows/{workflowID}/code`

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

## Path parameters

- `workflowID` string, required — workflow identifier

## Response `200`

OK

- WorkflowGetCodeResponse
  - `revision` integer, required
  - `revision_id` string, nullable, required
  - `source` string, required
  - `updated_at` string, date-time, required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/axilioai/apis/axilio-api-2.md) · [All operations](https://skmtc.net/axilioai/apis/axilio-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/axilioai/axilio-api-2/versions/d7ecf9466d6d/schema)
