---
title: "Confirm"
summary: "@slack/web-api / Confirm"
url: "https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/Confirm"
type: "guide"
---

Source: https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/Confirm

[@slack/web-api](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api.md) / Confirm

# Interface: Confirm

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:14

## Deprecated {#deprecated}

Confirm aliased to [ConfirmationDialog](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/confirmationdialog.md) in order to make the construct clearer and line up terminology with docs.slack.dev.

## Description {#description}

Defines a dialog that adds a confirmation step to interactive elements.

## See {#see}

[Confirmation dialog object reference](https://docs.slack.dev/reference/block-kit/composition-objects/confirmation-dialog-object.md).

## Extended by {#extended-by}

*   [`ConfirmationDialog`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/confirmationdialog.md)

## Properties {#properties}

### confirm? {#confirm}

```ts
confirm?: PlainTextElement;
```

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:29

#### Description {#description-1}

A [PlainTextElement](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/plaintextelement.md) text object to define the text of the button that confirms the action. Maximum length for the `text` in this field is 30 characters.

* * *

### deny? {#deny}

```ts
deny?: PlainTextElement;
```

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:34

#### Description {#description-2}

A [PlainTextElement](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/plaintextelement.md) text object to define the text of the button that cancels the action. Maximum length for the `text` in this field is 30 characters.

* * *

### style? {#style}

```ts
style?: ColorScheme;
```

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:40

#### Description {#description-3}

Defines the color scheme applied to the `confirm` button. A value of `danger` will display the button with a red background on desktop, or red text on mobile. A value of `primary` will display the button with a green background on desktop, or blue text on mobile. If this field is not provided, the default value will be `primary`.

* * *

### text {#text}

```ts
text: 
  | PlainTextElement
  | MrkdwnElement;
```

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:24

#### Description {#description-4}

A [PlainTextElement](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/plaintextelement.md) text object that defines the explanatory text that appears in the confirm dialog. Maximum length for the `text` in this field is 300 characters.

* * *

### title? {#title}

```ts
title?: PlainTextElement;
```

Defined in: packages/types/dist/block-kit/composition-objects.d.ts:19

#### Description {#description-5}

A [PlainTextElement](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/plaintextelement.md) text object that defines the dialog's title. Maximum length for this field is 100 characters.
