SlackSlackCommunity

Read recent messages from a Slack channel

slack.slack.messages.history

Read recent messages from a Slack channel

Price
freeAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/slack.slack.messages.historyPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

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

ParameterTypeRequiredDescriptionExample
Query parameters
limitintegerOptionaldefault 100, max 999 — but see the unlisted-app cap of 15 in the file header15
cursorstringOptionalresponse_metadata.next_cursor from the previous page
lateststringOptionalonly messages before this Unix timestamp
oldeststringOptionalonly messages after this Unix timestamp1700000000.000000
channelstringRequiredchannel ID (C…)C0123456789
inclusivebooleanOptionalinclude messages sitting exactly on the oldest/latest bounds
  • Query parameters
  • limitintegerOptional

    default 100, max 999 — but see the unlisted-app cap of 15 in the file header

    Example: 15

  • cursorstringOptional

    response_metadata.next_cursor from the previous page

  • lateststringOptional

    only messages before this Unix timestamp

  • oldeststringOptional

    only messages after this Unix timestamp

    Example: 1700000000.000000

  • channelstringRequired

    channel ID (C…)

    Example: C0123456789

  • inclusivebooleanOptional

    include messages sitting exactly on the oldest/latest bounds

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/slack.slack.messages.history' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.