Read recent messages from a Slack channel
slack.slack.messages.historyRead recent messages from a Slack channel
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/slack.slack.messages.historyPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
returns top-level messages only — thread replies come from conversations.replies. Message authors arrive as user IDs (U…); resolve them with users.info or users.list
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
limit | 整数 | 任意 | default 100, max 999 — but see the unlisted-app cap of 15 in the file header | 15 |
cursor | 文字列 | 任意 | response_metadata.next_cursor from the previous page | |
latest | 文字列 | 任意 | only messages before this Unix timestamp | |
oldest | 文字列 | 任意 | only messages after this Unix timestamp | 1700000000.000000 |
channel | 文字列 | 必須 | channel ID (C…) | C0123456789 |
inclusive | 真偽値 | 任意 | include messages sitting exactly on the oldest/latest bounds | |
- クエリパラメータ
limit整数任意default 100, max 999 — but see the unlisted-app cap of 15 in the file header
例:
15cursor文字列任意response_metadata.next_cursor from the previous page
latest文字列任意only messages before this Unix timestamp
oldest文字列任意only messages after this Unix timestamp
例:
1700000000.000000channel文字列必須channel ID (C…)
例:
C0123456789inclusive真偽値任意include messages sitting exactly on the oldest/latest bounds
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/slack.slack.messages.history' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/slack.slack.messages.history",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/slack.slack.messages.history", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。