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

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

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

# Interface: FileBlock

Defined in: packages/types/dist/block-kit/blocks.d.ts:247

## Description {#description}

Displays a [remote file](https://docs.slack.dev/messaging/working-with-files.md#remote). You can't add this block to app surfaces directly, but it will show up when [retrieving messages](https://docs.slack.dev/messaging/retrieving-messages.md) that contain remote files. If you want to add remote files to messages, [follow our guide](https://docs.slack.dev/messaging/working-with-files.md#remote).

## See {#see}

[File block reference](https://docs.slack.dev/reference/block-kit/blocks/file-block.md).

## Extends {#extends}

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

## Properties {#properties}

### block_id? {#block_id}

```
optional block_id?: string;
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:15

#### Description {#description-1}

A string acting as a unique identifier for a block. If not specified, a `block_id` will be generated. You can use this `block_id` when you receive an interaction payload to [identify the source of the action](https://docs.slack.dev/interactivity/handling-user-interaction.md#payloads). Maximum length for this field is 255 characters. `block_id` should be unique for each message and each iteration of a message. If a message is updated, use a new `block_id`.

#### Inherited from {#inherited-from}

[`Block`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md).[`block_id`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md#block_id)

* * *

### external_id {#external_id}

```
external_id: string;
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:259

#### Description {#description-2}

The external unique ID for this file.

* * *

### source {#source}

```
source: string;
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:255

#### Description {#description-3}

At the moment, source will always be `remote` for a remote file.

* * *

### type {#type}

```
type: "file";
```

Defined in: packages/types/dist/block-kit/blocks.d.ts:251

#### Description {#description-4}

The type of block. For a file block, `type` is always `file`.

#### Overrides {#overrides}

[`Block`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md).[`type`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/block.md#type)
