Components
Mattermost
Mattermost is an open-source, self-hosted messaging platform designed for secure team collaboration and communication.
Categories: Communication
Type: mattermost/v1
Connections
Version: 1
Bearer Token
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
domain | Domain | STRING | true | |
token | Token | STRING | true |
Actions
Send message
Name: sendMessage
Send message to a channel.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
channel_id | Channel Id | STRING | The channel ID to send message to. | true |
message | Message | STRING | The message contents. | true |
Example JSON Structure
{
"label" : "Send message",
"name" : "sendMessage",
"parameters" : {
"channel_id" : "",
"message" : ""
},
"type" : "mattermost/v1/sendMessage"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
id | STRING | ID of the message. |
create_at | INTEGER | The time in milliseconds a post was created. |
update_at | INTEGER | The time in milliseconds a post was last updated. |
edit_at | INTEGER | The time in milliseconds a post was last edited. |
delete_at | INTEGER | The time in milliseconds a post was deleted. |
is_pinned | BOOLEAN Optionstrue, false | True if post is pinned to the channel it is in. |
user_id | STRING | ID of the user. |
channel_id | STRING | ID of the channel. |
root_id | STRING | Post ID if post is created as a comment on another post. |
parent_id | STRING | |
original_id | STRING | |
message | STRING | The actual content of the message. |
type | STRING | |
props | OBJECT Properties{} | |
hashtags | STRING | Any hashtags included in the message content. |
pending_post_id | STRING | |
reply_count | INTEGER | Number of replies to this message. |
last_reply_at | INTEGER | The time in milliseconds of the most recent reply. |
participants | OBJECT Properties{} | |
is_following | BOOLEAN Optionstrue, false | |
metadata | OBJECT Properties{[{STRING(type), STRING(url), {}(data)}](embeds), [{STRING(id), STRING(creator_id), STRING(name), INTEGER(create_at), INTEGER(update_at), INTEGER(delete_at)}](emojis), [{STRING(id), STRING(user_id), STRING(post_id), INTEGER(create_at), INTEGER(update_at), INTEGER(delete_at), STRING(name), STRING(extension), INTEGER(size), STRING(mime_type), INTEGER(width), INTEGER(height), BOOLEAN(has_preview_image)}](files), [{INTEGER(height), INTEGER(width)}](images), [{STRING(user_id), STRING(post_id), STRING(emoji_name), INTEGER(create_at)}](reactions)} | Additional information used to display the post. |
Output Example
{
"id" : "",
"create_at" : 1,
"update_at" : 1,
"edit_at" : 1,
"delete_at" : 1,
"is_pinned" : false,
"user_id" : "",
"channel_id" : "",
"root_id" : "",
"parent_id" : "",
"original_id" : "",
"message" : "",
"type" : "",
"props" : { },
"hashtags" : "",
"pending_post_id" : "",
"reply_count" : 1,
"last_reply_at" : 1,
"participants" : { },
"is_following" : false,
"metadata" : {
"embeds" : [ {
"type" : "",
"url" : "",
"data" : { }
} ],
"emojis" : [ {
"id" : "",
"creator_id" : "",
"name" : "",
"create_at" : 1,
"update_at" : 1,
"delete_at" : 1
} ],
"files" : [ {
"id" : "",
"user_id" : "",
"post_id" : "",
"create_at" : 1,
"update_at" : 1,
"delete_at" : 1,
"name" : "",
"extension" : "",
"size" : 1,
"mime_type" : "",
"width" : 1,
"height" : 1,
"has_preview_image" : false
} ],
"images" : [ {
"height" : 1,
"width" : 1
} ],
"reactions" : [ {
"user_id" : "",
"post_id" : "",
"emoji_name" : "",
"create_at" : 1
} ]
}
}