slack.channel.archive ​
Archive a Slack conversation with an organization-scoped Slack connection.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-slack |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization that owns the Slack connection |
connection_uuid | uuid | Yes | — | Slack CloudConnection UUID |
channel | string | Yes | — | Slack conversation id or name to archive |
ignore_already_archived | boolean | No | — | Treat an already archived conversation as successful cleanup; default true |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
channel | string | No | — | Slack conversation id that was archived |
archived | boolean | Yes | — | True when Slack accepted a new archive operation |
already_archived | boolean | No | — | True when cleanup found the conversation was already archived |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
failure_reason | string | No | — | Human-readable failure reason (engine-stamped) |
failure_type | string | No | — | Failure category (engine-stamped) |
failed_action | string | No | — | Action that failed (engine-stamped) |
failed_at_state | string | No | — | State where the workflow failed (engine-stamped) |
failed_step | string | No | — | DAG step that failed (engine-stamped) |
failed_layer | string | No | — | DAG layer that failed (engine-stamped) |
error | string | No | — | Error message (engine-stamped) |
error_type | string | No | — | Error class name (engine-stamped) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "slack.channel.archive",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"channel": "value"
}
}