> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /v1/runs/{id}/nodes/{nodeId}/resume

Resume a waiting node in a workflow run

` POST /v1/runs/{id}/nodes/{nodeId}/resume `

Resume a waiting node in a workflow run

## Parameters

### ` id ` (path, required)

Run ID

- ` value `: type ` string `

### ` nodeId ` (path, required)

Node ID

- ` value `: type ` string `

### ` secret ` (query, required)

Per-workflow webhook secret

- ` value `: type ` string `

## Request body (optional)

Content type: ` application/json `

Resume payload

- ` value `: type ` unknown `

  - ` oneOf alternative 1 `: type ` object `

  - ` oneOf alternative 2 `: type ` object `

    - ` data `: type ` object `

    - ` forEachContext `: type ` object `

      - ` index `: type ` integer `

      - ` parentNodeId `: type ` string ` — Legacy fields kept for backward-compatible JSON deserialization. New code should only use Stack.

      - ` stack `: type ` array ` — Stack holds nesting levels from outermost to innermost. Single-level for-each uses a stack of length 1.

        - ` array item `: type ` object `

          - ` index `: type ` integer ` — Current iteration index (0, 1, 2...)

          - ` parentNodeId `: type ` string ` — For-each node ID (e.g., "for_each_send")

          - ` total `: type ` integer ` — Total iterations (for progress tracking)

      - ` total `: type ` integer `

## Responses

### ` 200 ` — OK

Content type: ` application/json `

- ` value `: type ` object `

  - ` action `: type ` string ` — "resumed" or "skipped"

  - ` reason `: type ` string `

### ` 400 ` — Bad Request

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

  - ` details `: type ` array `

    - ` array item `: type ` unknown `

  - ` message `: type ` string `

  - ` requestId `: type ` string `

### ` 401 ` — Unauthorized

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

  - ` details `: type ` array `

    - ` array item `: type ` unknown `

  - ` message `: type ` string `

  - ` requestId `: type ` string `

### ` 404 ` — Not Found

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

  - ` details `: type ` array `

    - ` array item `: type ` unknown `

  - ` message `: type ` string `

  - ` requestId `: type ` string `

## Request examples

### cURL

```curl
curl -X POST 'https://api.example.com/v1/runs/string/nodes/string/resume?secret=string' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

### JavaScript

```javascript
const response = await fetch('https://api.example.com/v1/runs/string/nodes/string/resume?secret=string', {
  method: 'POST',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN",
      "Content-Type": "application/json"
  },
  body: JSON.stringify({})
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.post('https://api.example.com/v1/runs/string/nodes/string/resume?secret=string', headers=headers, json={})
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	body := strings.NewReader(`{}`)
	req, _ := http.NewRequest("POST", "https://api.example.com/v1/runs/string/nodes/string/resume?secret=string", body)
	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
	req.Header.Set("Content-Type", "application/json")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
	result, _ := io.ReadAll(resp.Body)
	fmt.Println(string(result))
}
```