Skip to content
For LLMsView as Markdown·

Discord

Send messages, manage guilds, and interact with Discord via the Bot API.

DetailValue
CategoryCommunication
Base URLhttps://discord.com/api/v10
AuthenticationBearer Token
Endpoints6
Connector keydiscord

Using Discord in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Discord from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
POST /channels/{channel_id}/messagesSend a message to a channel
GET /channels/{channel_id}/messagesGet channel messages
GET /guilds/{guild_id}Get guild information
GET /guilds/{guild_id}/channelsList guild channels
GET /guilds/{guild_id}/membersList guild members
PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@meAdd a reaction to a message

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /channels/{channel_id}/messages

Send a message to a channel

DetailValue
Operation IDmessaging.sendMessage
MethodPOST
Path/channels/{channel_id}/messages

Parameters

NameLocationTypeRequired
channel_idpathstringYes

Request Body

FieldType
contentstring
embedsarray

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.sendMessage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.

GET /channels/{channel_id}/messages

Get channel messages

DetailValue
Operation IDmessaging.getMessages
MethodGET
Path/channels/{channel_id}/messages

Parameters

NameLocationTypeRequired
channel_idpathstringYes
limitqueryintegerNo

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getMessages.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.

GET /guilds/{guild_id}

Get guild information

DetailValue
Operation IDmessaging.getGuild
MethodGET
Path/guilds/{guild_id}

Parameters

NameLocationTypeRequired
guild_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getGuild.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.

GET /guilds/{guild_id}/channels

List guild channels

DetailValue
Operation IDmessaging.getGuildChannels
MethodGET
Path/guilds/{guild_id}/channels

Parameters

NameLocationTypeRequired
guild_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getGuildChannels.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.

GET /guilds/{guild_id}/members

List guild members

DetailValue
Operation IDmessaging.listMembers
MethodGET
Path/guilds/{guild_id}/members

Parameters

NameLocationTypeRequired
guild_idpathstringYes
limitqueryintegerNo

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.listMembers.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.

PUT /channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me

Add a reaction to a message

DetailValue
Operation IDmessaging.addReaction
MethodPUT
Path/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/@me

Parameters

NameLocationTypeRequired
channel_idpathstringYes
message_idpathstringYes
emojipathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Discord connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.addReaction.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Discord API reference.