---
type: api
title: Resume a workflow execution
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-post-workflows-executions-executionid-resume
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-post-workflows-executions-executionid-resume
products:
  - Kibana
---

# Resume a workflow execution

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

## Paths

- `POST` `/api/workflows/executions/{executionId}/resume`
- `POST` `/s/{space_id}/api/workflows/executions/{executionId}/resume`

#### Path parameters

- `executionId` (string · max length: 255) — required
  Workflow execution ID

## Description

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

Resume a paused workflow execution with the provided input.

## Required authorization

- Privileges: `workflowsManagement:execute`

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Request body

`application/json`

- `input` (map string to object) — required
  Input data to resume the execution with.
- `stepExecutionId` (string · min length: 1 · max length: 1024) — optional
  Step execution ID of the HITL wait to claim. When omitted, the server looks up the waiting step.

## Response

Indicates a successful response

`application/json`

## Code examples

#### Console

```console
POST kbn://api/workflows/executions/{executionId}/resume
{
  "input": {
    "approved": true,
    "comment": "Approved by analyst"
  },
  "stepExecutionId": "step-exec-a1b2c3d4"
}
```

#### curl

```curl
curl \
  -X POST "${KIBANA_URL}/api/workflows/executions/{executionId}/resume" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "approved": true,
      "comment": "Approved by analyst"
    },
    "stepExecutionId": "step-exec-a1b2c3d4"
  }'
```

## Response examples

#### Resume execution response

Example response confirming the resume was scheduled

```json
{
  "executionId": "exec-a1b2c3d4-e5f6-7890",
  "message": "Workflow resume scheduled",
  "success": true
}
```

