---
title: "Preview install-time bindings for an unsaved selection"
description: "Read-only. Re-runs the selection capture on the server and returns the schema v3 binding plan for a destination workspace (slots with destination options, field conflicts, target validation, canInstall). Used by the Create modal's inline install before the template exists. Nothing 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/install-preview`

Read-only. Re-runs the selection capture on the server and returns the schema v3 binding plan for a destination workspace (slots with destination options, field conflicts, target validation, canInstall). Used by the Create modal's inline install before the template exists. Nothing 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/install-preview.path.workspaceId`; string, required)

## Request body

_Required._

- `destinationWorkspaceId` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.destinationWorkspaceId`; string, required)
- `bindings` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.bindings`; map<object>, optional)
- `flowIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.flowIds`; array<string>, optional)
  - format `uuid`
- `sequenceIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.sequenceIds`; array<string>, optional)
  - format `uuid`
- `folderIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.folderIds`; array<string>, optional)
  - format `uuid`
- `webhookIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.webhookIds`; array<string>, optional)
  - format `uuid`
- `customInboxIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.customInboxIds`; array<string>, optional)
  - format `uuid`

## Example request

```json
{
  "destinationWorkspaceId": "string",
  "bindings": {
    "property1": {
      "action": "bind",
      "targetId": "string"
    },
    "property2": {
      "action": "bind",
      "targetId": "string"
    }
  },
  "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/install-preview' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "destinationWorkspaceId": "string",
  "bindings": {
    "property1": {
      "action": "bind",
      "targetId": "string"
    },
    "property2": {
      "action": "bind",
      "targetId": "string"
    }
  },
  "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/install-preview';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    destinationWorkspaceId: 'string',
    bindings: {
      property1: {action: 'bind', targetId: 'string'},
      property2: {action: 'bind', targetId: 'string'}
    },
    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/install-preview"

payload = {
    "destinationWorkspaceId": "string",
    "bindings": {
        "property1": {
            "action": "bind",
            "targetId": "string"
        },
        "property2": {
            "action": "bind",
            "targetId": "string"
        }
    },
    "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

Binding plan for the destination

#### Example

```json
{
  "success": true,
  "canInstall": true,
  "unresolvedBindingIds": [
    "string"
  ],
  "bindings": [
    {}
  ],
  "blockers": [
    {}
  ],
  "warnings": [
    {}
  ]
}
```

- `success` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.success`; boolean, optional)
- `canInstall` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.canInstall`; boolean, optional)
- `unresolvedBindingIds` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.unresolvedBindingIds`; array<string>, optional)
- `bindings` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.bindings`; array<object>, optional)
- `blockers` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.blockers`; array<object>, optional)
- `warnings` (`post/api/workspaces/workspaceId/automation-templates/analyze/install-preview.response.200.warnings`; array<object>, optional)

### 400

Invalid selection or destination

### 401

Authentication required

### 403

Source and destination workspace access required


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