# Get Slack account settings

Fetches Slack account settings.

```http
GET https://api.pozy.ai/v1/accounts/{accountId}/slack-settings
```

- Area: Accounts & connections / Accounts
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `accountId` (string, required)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/slack-settings" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/slack-settings", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/slack-settings",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `account`, object
  - `_id`, string
  - `platform`, string
  - `displayName`, string: Can be null
  - `channelId`, string: Can be null
  - `channelName`, string: Can be null
  - `channelType`, string: Can be null
  - `teamId`, string: Can be null
  - `teamName`, string: Can be null
  - `defaultUsername`, string: Can be null
  - `defaultIconUrl`, string: Can be null

```json
{
  "account": {
    "_id": "635d87e261ae344ef27fd1df",
    "platform": "instagram",
    "displayName": "Acme",
    "channelId": "6750a975638e9df035530f04",
    "channelName": "Acme",
    "channelType": "string",
    "teamId": "6dab1c2f54f9e71793d1b9d8",
    "teamName": "Acme",
    "defaultUsername": "acme",
    "defaultIconUrl": "https://pozy.ai/media/example-1.jpg"
  }
}
```
