---
title: "Export a flow"
method: POST
path: "/v1/flows/{flowId}/exports"
tags: ["flows"]
---

# Export a flow

`POST /v1/flows/{flowId}/exports`

## Request

- Base URL: `https://api.flowral.app`
- URL: `https://api.flowral.app/v1/flows/{flowId}/exports`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (client credentials, token URL `https://api.flowral.app/v1/oauth/token`, scopes: `flows:read`)

Renders the flow through the same pipeline the app uses. `pdf` is the delivery document (diagram plus execution plan); `png` is the dependency diagram on its own. Responds with the bytes, `Content-Disposition` set.

## Path parameters

- `flowId` string, required

## Request body

- object
  - `format` string, required: `pdf` or `png`.

## Response `200`

SUCCESS — `application/pdf` or `image/png`.

## Other responses

- `400`: VALIDATION_FAILED
- `401`: UNAUTHORIZED
- `403`: FORBIDDEN · PLAN_REQUIRED · INSUFFICIENT_SCOPE
- `404`: NOT_FOUND
- `429`: RATE_LIMITED
- `502`: RENDER_FAILED

---

[API](https://skmtc.dev/flowral/apis/flowral-api.md) · [All operations](https://skmtc.dev/flowral/apis/flowral-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flowral/apis/flowral-api/revisions/6cd2337b682c?raw)
