Lodol Docs

Slack

API actions for the Slack integration.

Slack

Send and manage Slack messages, channels, and reactions with a bot token.


Add a reaction

Add an emoji reaction to a Slack message.

Parameters

ParameterTypeRequiredDescription
channel_idstringYesChannel ID containing the message (e.g., C123456). IMPORTANT: Must be a channel ID, not a channel name.
timestampstringYesMessage timestamp (ts) to react to. Use the 'ts' field from the send-message response.
emojistringYesEmoji name without colons (e.g., thumbsup).

Response

{
  "status": "example_value"
}

Archive a channel

Archive a Slack channel by ID.

Parameters

ParameterTypeRequiredDescription
channel_idstringYesThe channel ID to archive (e.g., C123456). IMPORTANT: Must be a channel ID, not a channel name.

Response

{
  "status": "example_value"
}

Create a channel

Create a new public or private Slack channel. The returned channel object contains an 'id' field that must be used for subsequent operations (NOT the channel name).

Parameters

ParameterTypeRequiredDescription
namestringYesChannel name (lowercase, no spaces).
is_privatebooleanNoWhether the channel should be private.
topicstringNo(Optional) Topic to set after creation.

Response

{
  "channel": {
    "id": "example_value",
    "is_archived": true,
    "is_private": true,
    "name": "example_value"
  },
  "status": "example_value"
}

List channels

Retrieve visible channels for the bot, optionally excluding archived ones.

Parameters

ParameterTypeRequiredDescription
exclude_archivedbooleanNoWhether to hide archived channels.
limitnumberNoMaximum number of channels to return (1-1000).

Response

{
  "channels": [],
  "status": "example_value"
}

Schedule a message

Schedule a message to be posted at a future Unix timestamp.

Parameters

ParameterTypeRequiredDescription
channel_idstringYesChannel ID where the message will be sent (e.g., C123456). IMPORTANT: Must be a channel ID, not a channel name.
textstringYesMessage text to schedule.
post_atnumberYesUnix timestamp (seconds) when the message should be posted.

Response

{
  "channel": "example_value",
  "post_at": "example_value",
  "status": "example_value"
}

Send a direct message

Open a DM with a user and send them a message.

Parameters

ParameterTypeRequiredDescription
user_idstringYesThe Slack user ID to DM (e.g., U123456).
textstringYesThe message text to send.

Response

{
  "channel": "example_value",
  "status": "example_value",
  "ts": "example_value"
}

Send a message to a channel

Post a message to a public or private Slack channel using a bot token.

Parameters

ParameterTypeRequiredDescription
channel_idstringYesThe Slack channel ID (e.g., C123456). IMPORTANT: Must be a channel ID, not a channel name.
textstringYesThe message text to send.
thread_tsstringNo(Optional) Thread timestamp to reply in a thread.

Response

{
  "channel": "example_value",
  "status": "example_value",
  "ts": "example_value"
}

On this page