---
title: "Analyze automation template selection"
description: "Expands referenced flows and sequences within the source workspace. Returns grouped dependency warnings with affected resources and steps; no data is written."
---

> 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/workspaces/{workspaceId}/automation-templates/analyze`

Expands referenced flows and sequences within the source workspace. Returns grouped dependency warnings with affected resources and steps; no data is written.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`post/api/workspaces/workspaceId/automation-templates/analyze.path.workspaceId`; string, required)

## Request body

_Required._

- `flowIds` (`post/api/workspaces/workspaceId/automation-templates/analyze.flowIds`; array<string>, optional)
  - format `uuid`
- `sequenceIds` (`post/api/workspaces/workspaceId/automation-templates/analyze.sequenceIds`; array<string>, optional)
  - format `uuid`
- `folderIds` (`post/api/workspaces/workspaceId/automation-templates/analyze.folderIds`; array<string>, optional)
  - format `uuid`
- `webhookIds` (`post/api/workspaces/workspaceId/automation-templates/analyze.webhookIds`; array<string>, optional)
  - format `uuid`
- `customInboxIds` (`post/api/workspaces/workspaceId/automation-templates/analyze.customInboxIds`; array<string>, optional)
  - format `uuid`

## Example request

```json
{
  "flowIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "sequenceIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "folderIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "webhookIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "customInboxIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/automation-templates/analyze' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "flowIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "sequenceIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "folderIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "webhookIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "customInboxIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/automation-templates/analyze';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    flowIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08'],
    sequenceIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08'],
    folderIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08'],
    webhookIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08'],
    customInboxIds: ['497f6eca-6276-4993-bfeb-53cbbbba6f08']
  })
};

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/workspaces/<workspaceId>/automation-templates/analyze"

payload = {
    "flowIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
    "sequenceIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
    "folderIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
    "webhookIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
    "customInboxIds": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"]
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

Successful operation

#### Example

```json
{
  "success": true
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.200.success`; boolean, optional)

### 400

Invalid selection or destination

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.400.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.400.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.400.details`; object, optional, nullable)

### 401

Authentication required

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.401.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.401.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.401.details`; object, optional, nullable)

### 403

Source and destination workspace access required

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.403.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.403.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.403.details`; object, optional, nullable)

### 404

Workspace, template or selected resource not found

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.404.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.404.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.404.details`; object, optional, nullable)

### 409

Unresolved dependencies or incompatible destination fields; details contains the repair issues

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.409.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.409.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.409.details`; object, optional, nullable)

### 500

Database or installation failure

#### Example

```json
{
  "success": true,
  "error": "string",
  "details": {}
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.500.success`; boolean, optional)
- `error` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.500.error`; string, optional)
- `details` (`post/api/workspaces/workspaceId/automation-templates/analyze.response.500.details`; object, optional, nullable)


Source: https://developer.channelautomations.com/api/post-api-workspaces-workspace-id-automation-templates-analyze/index.md
