# Message configuration

## Supported payload types

Each destination type has specific schema structures tailored to its payload type. For Slack, the schema varies depending on whether the payload type is **Structured** or **Raw**.

| Payload type   | `payload_type` API value | Description                                                                                                                                                  |
| -------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Structured** | `structured`             | The user provides templates for discrete fields (e.g., **Title**, **Description**, **Footer**). The system builds a Slack payload from these fields.         |
| **Raw**        | `raw`                    | The user provides a template that must render to a valid JSON object that follows Slack's API payload format. Allows full control over notification content. |

### Structured payload type

| UI label        | API field name | Rendered output type | Required | Description                                    |
| --------------- | -------------- | -------------------- | -------- | ---------------------------------------------- |
| **Title**       | `title`        | `String`             | true     | The title of the Slack notification.           |
| **Description** | `description`  | `String`             | false    | A brief description of the Slack notification. |
| **Footer**      | `footer`       | `String`             | false    | Footer text for the Slack notification.        |

### Raw payload type

For raw payload type, the Slack message schema is configured directly using a JSON payload. The templates in the provided payload are rendered and the result is sent as-is to the Slack API.

| UI label    | API field name | Rendered output type | Required | Description                                     |
| ----------- | -------------- | -------------------- | -------- | ----------------------------------------------- |
| **Payload** | `payload`      | `JSONObject`         | true     | The payload of the request to be sent to Slack. |

## Next steps

Configure an Email connector to define notification recipients in [Connector configuration](https://coralogix.com/docs/user-guides/notification-center/destination-types/email/connector-config/index.md).
