---
title: slack package
description: The slack package provides functions for sending messages to Slack.
url: https://docs.influxdata.com/flux/v0/stdlib/slack/
estimated_tokens: 368
product: Flux
version: v0
---

# slack package

-   Flux 0.41.0+
-   View InfluxDB support

The `slack` package provides functions for sending messages to [Slack](https://slack.com/). Import the `slack` package:

```js
import "slack"
```

## Options

```js
option slack.defaultURL = "https://slack.com/api/chat.postMessage"
```

### defaultURL

`defaultURL` defines the default Slack API URL used by functions in the `slack` package.

## Functions

-   [slack.endpoint()](/flux/v0/stdlib/slack/endpoint/)
-   [slack.message()](/flux/v0/stdlib/slack/message/)
-   [slack.validateColorString()](/flux/v0/stdlib/slack/validatecolorstring/)
