Slack
Get Slack File Contents
Read the text of a supported Slack attachment up to 25 MB through a connected Slack account.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| file_idstring · required | string | required | The Slack file ID to read. Bind file_ids[0] (or files[].id) from the Slack message trigger, or paste an ID from List Slack Files. Example: |
Response schema
{
"type": "object",
"required": [
"ok",
"file",
"text",
"text_chars",
"truncated",
"extraction"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the file contents were retrieved"
},
"file": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"size": {
"type": "number"
},
"user": {
"type": "string"
},
"title": {
"type": "string"
},
"created": {
"type": [
"number",
"null"
]
},
"channels": {
"type": "array",
"items": {
"type": "string"
}
},
"filetype": {
"type": "string"
},
"mimetype": {
"type": "string"
},
"permalink": {
"type": "string"
}
}
},
"text": {
"type": "string",
"description": "Extracted text contents"
},
"message": {
"type": "string"
},
"truncated": {
"type": "boolean",
"description": "True when text was cut at the 200,000-character cap"
},
"extraction": {
"enum": [
"utf-8",
"pdf-parse",
"none"
],
"type": "string"
},
"text_chars": {
"type": "number",
"description": "Length of the complete extracted text"
}
}
}