---
title: "Export workflows"
method: POST
path: "/api/workflows/export"
tags: ["workflows"]
---

# Export workflows

`POST /api/workflows/export`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/workflows/export</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Export one or more workflows as JSON with YAML content and metadata.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read OR workflowsManagement:managed:read.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `ids` string[], required — Array of workflow IDs to export.

## Response `200`

JSON containing exported workflow YAML entries and manifest metadata

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
