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
Name | Label | Type | Description | Required |
---|---|---|---|---|
clientId | Client Id | STRING | true | |
clientSecret | Client Secret | STRING | true |
Actions
Send Approval Message
Name: sendApprovalMessage
Sends approval message to a channel.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
channel | Channel | STRING | Channel, private group, or IM channel to send message to. | true |
text | Message | STRING | The 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
Name | Type | Description |
---|---|---|
ok | BOOLEAN Optionstrue, false | Indicates if the message was successfully sent. |
channel | STRING | ID of the channel the message was sent to. |
ts | STRING | Timestamp of the message. |
message | OBJECT Properties{STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)} | The sent message. |
warning | STRING | |
responseMetadata | OBJECT 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
Name | Label | Type | Description | Required |
---|---|---|---|---|
channel | Channel ID | STRING | ID of the channel, private group, or IM channel to send message to. | true |
text | Message | STRING | The text of your message. | true |
Example JSON Structure
{ "label" : "Send message", "name" : "sendMessage", "parameters" : { "channel" : "", "text" : "" }, "type" : "slack/v1/sendMessage"}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
ok | BOOLEAN Optionstrue, false | Indicates if the message was successfully sent. |
channel | STRING | ID of the channel the message was sent to. |
ts | STRING | Timestamp of the message. |
message | OBJECT Properties{STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)} | The sent message. |
warning | STRING | |
responseMetadata | OBJECT 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
Name | Label | Type | Description | Required |
---|---|---|---|---|
channel | User ID | STRING | ID of the user to send the direct message to. | true |
text | Message | STRING | The 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
Name | Type | Description |
---|---|---|
ok | BOOLEAN Optionstrue, false | Indicates if the message was successfully sent. |
channel | STRING | ID of the channel the message was sent to. |
ts | STRING | Timestamp of the message. |
message | OBJECT Properties{STRING(user), STRING(type), STRING(ts), STRING(text), STRING(team), STRING(subtype)} | The sent message. |
warning | STRING | |
responseMetadata | OBJECT Properties{[STRING](messages)} |
Output Example
{ "ok" : false, "channel" : "", "ts" : "", "message" : { "user" : "", "type" : "", "ts" : "", "text" : "", "team" : "", "subtype" : "" }, "warning" : "", "responseMetadata" : { "messages" : [ "" ] }}