---
type: api
title: Get workflows by IDs
description: Retrieve multiple workflows by their IDs in a single request. Optionally use the `source` parameter to return only specific fields from each workflow document.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read OR workflowsManagement:managed:read.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-post-workflows-mget
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v0/operation/operation-post-workflows-mget
products:
  - Kibana
---

# Get workflows by IDs

Availability: 9.4+

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

## Paths

- `POST` `/api/workflows/mget`

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

## Description

Retrieve multiple workflows by their IDs in a single request. Optionally use the `source` parameter to return only specific fields from each workflow document.<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 look up.
- `source` ([] string · min: 1 · max: 10) — optional
  Array of source fields to include.

## Response

Indicates a successful response

## Code Examples

#### Console

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

#### curl

```curl
curl \
  -X POST "${KIBANA_URL}/api/workflows/mget" \
  -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"],
    "source": ["name", "enabled"]
  }'
```

## Response Examples

#### Mget workflows response

Example response returning the requested workflows with projected fields

```json
[
  {
    "enabled": true,
    "id": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Example definition"
  },
  {
    "enabled": false,
    "id": "workflow-b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "name": "Second workflow"
  }
]
```

