# GET /api/v1/advisory-firms/{firm_id}/slack/status

> Get firm Slack status

- **Tag:** advisory-firms
- **Operation ID:** `get_firm_slack_status_api_v1_advisory_firms__firm_id__slack_status_get`

## Description

Check whether a Slack webhook is configured and get notification preferences.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `firm_id` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `SlackIntegrationStatus`

- `connected` (boolean · required) — Whether at least one webhook URL is configured
- `webhooks` (array · SlackWebhookItem) → `SlackWebhookItem` — List of configured webhooks
  - `id` (string · required) — Webhook ID
  - `channel_name` (string) — User-defined channel or webhook name
  - `webhook_url_masked` (string · required) — Masked URL for display
  - `notification_preferences` (object · required) — Per-category enabled flags
  - `notification_categories` (array · SlackCategoryItem · required) — Categories with metadata for UI rendering
- `groups` (array · SlackGroupInfo) → `SlackGroupInfo` — Group definitions for UI section rendering
  - `key` (string · required) — Group key (matches SlackCategoryItem.group)
  - `label` (string · required) — User-facing section label

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/slack/status' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/slack/status', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}/slack/status", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/advisory-firms/get-firm-slack-status
- OpenAPI slice: https://www.ondayzero.com/docs/reference/advisory-firms/get-firm-slack-status/openapi.json
- Other endpoints in **advisory-firms**: https://www.ondayzero.com/docs/reference/advisory-firms
