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

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Send Approval Message

Name: sendApprovalMessage

Sends approval message to a channel.

Properties

NameLabelTypeDescriptionRequired
channelChannelSTRINGChannel, private group, or IM channel to send message to.true
textMessageSTRINGThe text of your message.true

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
okBOOLEAN
Options true, false
Indicates if the message was successfully sent.
channelSTRINGID of the channel the message was sent to.
tsSTRINGTimestamp of the message.
messageOBJECT
Properties {STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)}
The sent message.
warningSTRING
responseMetadataOBJECT
Properties {[STRING](messages)}

Output Example

{
"ok" : false,
"channel" : "",
"ts" : "",
"message" : {
"user" : "",
"type" : "",
"ts" : "",
"text" : "",
"team" : "",
"subtype" : ""
},
"warning" : "",
"responseMetadata" : {
"messages" : [ "" ]
}
}

Send message

Name: sendMessage

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

Properties

NameLabelTypeDescriptionRequired
channelChannel IDSTRINGID of the channel, private group, or IM channel to send message to.true
textMessageSTRINGThe text of your message.true

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
okBOOLEAN
Options true, false
Indicates if the message was successfully sent.
channelSTRINGID of the channel the message was sent to.
tsSTRINGTimestamp of the message.
messageOBJECT
Properties {STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)}
The sent message.
warningSTRING
responseMetadataOBJECT
Properties {[STRING](messages)}

Output Example

{
"ok" : false,
"channel" : "",
"ts" : "",
"message" : {
"user" : "",
"type" : "",
"ts" : "",
"text" : "",
"team" : "",
"subtype" : ""
},
"warning" : "",
"responseMetadata" : {
"messages" : [ "" ]
}
}

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

NameLabelTypeDescriptionRequired
channelUser IDSTRINGID of the user to send the direct message to.true
textMessageSTRINGThe text of your message.true

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
okBOOLEAN
Options true, false
Indicates if the message was successfully sent.
channelSTRINGID of the channel the message was sent to.
tsSTRINGTimestamp of the message.
messageOBJECT
Properties {STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)}
The sent message.
warningSTRING
responseMetadataOBJECT
Properties {[STRING](messages)}

Output Example

{
"ok" : false,
"channel" : "",
"ts" : "",
"message" : {
"user" : "",
"type" : "",
"ts" : "",
"text" : "",
"team" : "",
"subtype" : ""
},
"warning" : "",
"responseMetadata" : {
"messages" : [ "" ]
}
}