Skip to content

Slack

Slack is a messaging platform for teams to communicate and collaborate.

Categories: communication, developer-tools

Type: slack/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeControl TypeDescriptionRequired
clientIdClient IdSTRINGTEXTtrue
clientSecretClient SecretSTRINGTEXTtrue

Actions

Send message

Name: sendMessage

Sends a message to a public channel, private channel, or existing direct message conversation.

Properties

NameLabelTypeControl TypeDescriptionRequired
channelChannel IDSTRINGSELECTID of the channel, private group, or IM channel to send message to.true
textMessageSTRINGTEXT_AREAThe text of your message.true

Output

Type: OBJECT

Properties

NameTypeControl Type
okBOOLEAN
Options true, false
SELECT
channelSTRINGTEXT
tsSTRINGTEXT
messageOBJECT
Properties {STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)}
OBJECT_BUILDER
warningSTRINGTEXT
responseMetadataOBJECT
Properties {[STRING](messages)}
OBJECT_BUILDER

JSON Example

{
"label" : "Send message",
"name" : "sendMessage",
"parameters" : {
"channel" : "",
"text" : ""
},
"type" : "slack/v1/sendMessage"
}

Send Direct Message

Name: sendDirectMessage

Sends a direct message to another user in a workspace. If it hasn’t already, a direct message conversation will be created.

Properties

NameLabelTypeControl TypeDescriptionRequired
channelUser IDSTRINGSELECTID of the user to send the direct message to.true
textMessageSTRINGTEXT_AREAThe text of your message.true

Output

Type: OBJECT

Properties

NameTypeControl Type
okBOOLEAN
Options true, false
SELECT
channelSTRINGTEXT
tsSTRINGTEXT
messageOBJECT
Properties {STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)}
OBJECT_BUILDER
warningSTRINGTEXT
responseMetadataOBJECT
Properties {[STRING](messages)}
OBJECT_BUILDER

JSON Example

{
"label" : "Send Direct Message",
"name" : "sendDirectMessage",
"parameters" : {
"channel" : "",
"text" : ""
},
"type" : "slack/v1/sendDirectMessage"
}