---
title: "Submit a bounded manual batch with a stable retry identity"
description: "Negotiated manual_flow_batch_v1 protocol. Requires verified identity, bound workspace, stored workflow and visible contacts. At most 500 IDs; UUID requestId is mandatory and task keys last 24 hours. This distinct path prevents an older replica ignoring retry IDs. Never fall back to a legacy POST after a v2 refusal or lost response."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Actions

`POST /api/unified-workflow/batch-execute-v2`

Negotiated manual_flow_batch_v1 protocol. Requires verified identity, bound workspace, stored workflow and visible contacts. At most 500 IDs; UUID requestId is mandatory and task keys last 24 hours. This distinct path prevents an older replica ignoring retry IDs. Never fall back to a legacy POST after a v2 refusal or lost response.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `BackendTriggerAuth`, apiKey, in header, header `X-Trigger-Secret`

## Header parameters

- `X-Workspace-Id` (`post/api/unified-workflow/batch-execute-v2.header.X-Workspace-Id`; string, required)

## Request body

_Required._

- `workflowId` (`post/api/unified-workflow/batch-execute-v2.workflowId`; string, required)
  - format `uuid`
- `workspaceId` (`post/api/unified-workflow/batch-execute-v2.workspaceId`; string, required)
- `contactIds` (`post/api/unified-workflow/batch-execute-v2.contactIds`; array<string>, required)
  - format `uuid`
- `requestId` (`post/api/unified-workflow/batch-execute-v2.requestId`; string, required)
  - format `uuid`
- `isTest` (`post/api/unified-workflow/batch-execute-v2.isTest`; boolean, optional)

## Example request

```json
{
  "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
  "workspaceId": "string",
  "contactIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "isTest": true
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/unified-workflow/batch-execute-v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Workspace-Id: string' \
  --data '
{
  "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
  "workspaceId": "string",
  "contactIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "isTest": true
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/unified-workflow/batch-execute-v2';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-Workspace-Id': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    workflowId: '43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4',
    workspaceId: 'string',
    contactIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08'],
    requestId: 'd385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6',
    isTest: true
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/unified-workflow/batch-execute-v2"

payload = {
    "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",
    "workspaceId": "string",
    "contactIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
    "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
    "isTest": True
}
headers = {
    "Content-Type": "application/json",
    "X-Workspace-Id": "string",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Entire batch accepted

### 400

Invalid UUID or batch size

### 401

Missing or invalid caller identity

### 403

Workspace or visibility denied

### 404

Resource absent or replica does not support v2

### 502

No submissions confirmed; outcome may be unknown

### 503

Identity or resource verification unavailable


Source: https://developer.channelautomations.com/api/post-api-unified-workflow-batch-execute-v2/index.md
