Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Mattermost

Schemesmmost://, mmosts://
Cargo featureservice-mattermost
Servicehttps://mattermost.com/
Body formatstext (first is the default)
Attachmentsyes
Title lengthno title (merged into the body)
Body length4,000 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedyes

URL formats

{schema}://{host}/{token}
{schema}://{host}:{port}/{token}
{schema}://{host}/{fullpath}/{token}
{schema}://{host}:{port}/{fullpath}/{token}
{schema}://{user}@{host}/{token}
{schema}://{user}@{host}:{port}/{token}
{schema}://{user}@{host}/{fullpath}/{token}
{schema}://{user}@{host}:{port}/{fullpath}/{token}

{schema} is one of mmost://, mmosts://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{fullpath}Pathstringno
{host}Hostnamestringyes
{port}Portint, 1 to 65535no
{target_channel}Target Channelstringnoprefix #
{target_channel_id}Target Channel IDstringno
{targets}Targetslistnoany of target_channel, target_channel_id; separated by /
{token}Tokenstringyessecret
{user}Userstringno

Query parameters

ParameterMeaningTypeDefaultNotes
botnameUserstringsets {user}
channelTargetslistsets {targets}
channelsTargetslistsets {targets}
icon_urlIcon URLstring
imageInclude Imageboolyes
modeModechoicewebhook (usually; depends on the URL)one of webhook, bot
teamUserstringsets {user}
toTargetslistsets {targets}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

mmost://localhost/3ccdd113474722377935511fc85d3dd4
mmosts://localhost/a/path/3ccdd113474722377935511fc85d3dd4
mmosts://localhost/////3ccdd113474722377935511fc85d3dd4///
https://mattermost.example.com/hooks/3ccdd113474722377935511fc85d3dd4
mmost://localhost/token?mode=w
mmost://localhost/3ccdd113474722377935511fc85d3dd4?to=#raw
mmost://localhost/3ccdd113474722377935511fc85d3dd4?image=no
http://mattermost.example.com:8065/hooks/3ccdd113474722377935511fc85d3dd4/?image=no

Rejected URLs:

mmost://
mmosts://
mmost://:@/
mmosts://localhost

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'mmost://localhost/3ccdd113474722377935511fc85d3dd4'

Notes

Mattermost (mmost://, mmosts://): posts to Mattermost channels.

Channel-name lookups (bot mode) are cached in the persistent store for 20 days (c:<name>).