SlackSlackCommunity

Read recent messages from a Slack channel

slack.slack.messages.history

Read recent messages from a Slack channel

Price
freePelo preço do provedor
Success rate
—Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/slack.slack.messages.historyPreview
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

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

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
limitinteiroOpcionaldefault 100, max 999 — but see the unlisted-app cap of 15 in the file header15
cursorstringOpcionalresponse_metadata.next_cursor from the previous page
lateststringOpcionalonly messages before this Unix timestamp
oldeststringOpcionalonly messages after this Unix timestamp1700000000.000000
channelstringObrigatóriochannel ID (C…)C0123456789
inclusivebooleanoOpcionalinclude messages sitting exactly on the oldest/latest bounds
  • Parâmetros de consulta
  • limitinteiroOpcional

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

    Exemplo: 15

  • cursorstringOpcional

    response_metadata.next_cursor from the previous page

  • lateststringOpcional

    only messages before this Unix timestamp

  • oldeststringOpcional

    only messages after this Unix timestamp

    Exemplo: 1700000000.000000

  • channelstringObrigatório

    channel ID (C…)

    Exemplo: C0123456789

  • inclusivebooleanoOpcional

    include messages sitting exactly on the oldest/latest bounds

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

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

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.