> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack

> Post a short call summary to a Slack channel after every call

When Slack is connected to a number, Nixflex posts a short summary to your Slack channel after every call on that number — so your team sees what happened without listening back. It posts once, right after the call ends, and is configured **per phone number**, so each number can post to its own channel.

## What you need

A **Slack Incoming Webhook URL** for the channel you want summaries posted to. It starts with `https://hooks.slack.com/`.

To create one: in Slack, go to **Apps → Incoming Webhooks → Add to Slack**, choose the channel, and copy the generated URL. Only a `https://hooks.slack.com/...` URL is accepted.

## Connect via API

Set Slack on one of your numbers:

```bash theme={null}
curl -X PUT https://api.nixflex.com/v1/integrations/slack/number/+447700900123 \
  -H "Authorization: Bearer KEY_ID:KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{ "webhook_url": "https://hooks.slack.com/services/XXX/YYY/ZZZ" }'
```

`webhook_url` is required and must be a `https://hooks.slack.com/...` URL. The number must be one connected to your account.

**Read the current config.** The URL is never returned — you only see whether it is set:

```bash theme={null}
curl https://api.nixflex.com/v1/integrations/slack/number/+447700900123 \
  -H "Authorization: Bearer KEY_ID:KEY_SECRET"
```

```json theme={null}
{ "phone_number": "+447700900123", "is_active": true, "webhook_url_set": true }
```

**Disconnect:**

```bash theme={null}
curl -X DELETE https://api.nixflex.com/v1/integrations/slack/number/+447700900123 \
  -H "Authorization: Bearer KEY_ID:KEY_SECRET"
```

## Connect via dashboard

Prefer the dashboard? Go to **Integrations → Slack**, pick the agent and number, paste the **Incoming Webhook URL**, and click **Save**. The card shows **Connected** once saved.

## What gets posted

After each call on the number ends, Nixflex posts a message with:

* The **call summary**
* The **caller's number**
* The **sentiment and outcome**

It posts **once per call, after it ends**. The full transcript is never sent — only the summary and call details. Numbers without Slack set up simply do not post.

## Tips

* Use a dedicated channel such as `#calls` so summaries are easy to find.
* Each number is independent — different locations on one agent can each post to their own channel via per-number setup.
