Slack OAuth

Read Slack thread

Reads messages from a connected managed Slack workspace using the server-held Slack app token. The token is never returned to the desktop.

post/v1/slack-oauth/thread/read

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /v1/slack-oauth/thread/read
  • Auth: HTTP bearer

Request body

channelstring required

Slack channel id.

limitinteger nullable

Max messages to return. Defaults to 50, max 200.

teamIdstring required

Slack workspace/team id.

threadTsstring required

Slack thread timestamp. For a top-level message, use the message ts.

Example request

{
  "channel": "C01234567",
  "limit": 50,
  "teamId": "T0EXAMPLE",
  "threadTs": "1700000000.000100"
}

Response

Slack thread messages.

channelstring required

Slack channel id.

teamIdstring required

Slack workspace/team id.

threadTsstring required

Slack thread timestamp.

Example response

{
  "channel": "C01234567",
  "messages": [
    {
      "bot_id": "B01234567",
      "text": "Can you summarize this?",
      "ts": "1700000000.000100",
      "user": "U01234567"
    }
  ],
  "teamId": "T0EXAMPLE",
  "threadTs": "1700000000.000100"
}

Changes

No operation changes recorded.