v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-014994227.2 KB
workflows

Get current workflow code

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

get/workflows/{workflow_id}/code

Path parameters

workflow_idstring uuid required

workflow identifier

workflow identifier

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

revisioninteger required

Current revision number, or 0 when no revisions exist.

revision_idstring nullable required

Current revision's id, or null when no revisions exist.

sourcestring required

Current revision's Python source.

updated_atstring date-time required

Created_at of the current revision, or the workflow's update_date when no revisions exist.

Example response

{
  "$schema": "/api/v1/WorkflowGetCodeResponse.json"
}