> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-tools/workflow-and-catalog-tools/get-flow-json.md).

# Get Flow JSON

Read the saved workflow definition of a project’s latest published version. Use it to inspect the nodes, connections, and configuration used by that version.

## Before you start

The selected project must be accessible and have a published version.

## Read a published definition

1. Select the **Project** whose published definition you need.
2. Run the tool and inspect **Flow JSON**.
3. Use the returned definition for the intended inspection or transfer, and review its contents before sharing it.

**Result:** **Flow JSON** contains the project’s latest published workflow definition.

## Behavior and troubleshooting

This is configuration, not a transcript or a result from an execution. It can include prompts and other sensitive configuration. Check the version and content before using it as an export or reference.

## Inputs

| Field              | Parameter    | Description                                                                                                 |
| ------------------ | ------------ | ----------------------------------------------------------------------------------------------------------- |
| Project (required) | `project_id` | The StackAI project for which you want the JSON representation. Includes all projects in this organization. |

## Outputs

| Field     | Parameter   | Description                                             |
| --------- | ----------- | ------------------------------------------------------- |
| Flow JSON | `flow_json` | The flow JSON of the project's latest published version |

## Related guidance

[Action Inputs, Outputs, and Validation](https://docs.stackai.com/technical-reference/connections-and-tool-execution/action-inputs-outputs-and-validation.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-tools/workflow-and-catalog-tools/get-flow-json.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
