---
type: api
title: Export workflows
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-post-workflows-export
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-post-workflows-export
products:
  - Kibana
---

# Export workflows

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/workflows/export`
- `POST` `/s/{space_id}/api/workflows/export`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#basicauth)

## Description

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.

## Request Body

`application/json`

- `ids` ([] string · min: 1 · max: 500) — required
  Array of workflow IDs to export.

## Response

JSON containing exported workflow YAML entries and manifest metadata

## Code Examples

#### Console

```console
POST kbn://api/workflows/export
{
  "ids": ["workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890", "workflow-b2c3d4e5-f6a7-8901-bcde-f12345678901"]
}
```

#### curl

```curl
curl \
  -X POST "${KIBANA_URL}/api/workflows/export" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": ["workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890", "workflow-b2c3d4e5-f6a7-8901-bcde-f12345678901"]
  }'
```

## Response Examples

#### Export workflows response

Workflow entries with YAML content and export manifest

```json
{
  "entries": [
    {
      "id": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "yaml": "name: My Workflow\nsteps:\n  - type: http.request\n    with:\n      url: https://example.com"
    },
    {
      "id": "workflow-b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "yaml": "name: Another Workflow\nsteps:\n  - type: http.request\n    with:\n      url: https://example.com"
    }
  ],
  "manifest": {
    "exportedAt": "2026-03-26T12:00:00.000Z",
    "exportedCount": 2,
    "version": "1"
  }
}
```

