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

Rocket.Chat

Schemesrocket://, rockets://
Cargo featureservice-rocketchat
Servicehttps://rocket.chat/
Body formatsmarkdown (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length1,000 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{user}:{password}@{host}:{port}/{targets}
{schema}://{user}:{password}@{host}/{targets}
{schema}://{user}:{token}@{host}:{port}/{targets}
{schema}://{user}:{token}@{host}/{targets}
{schema}://{webhook}@{host}
{schema}://{webhook}@{host}:{port}
{schema}://{webhook}@{host}/{targets}
{schema}://{webhook}@{host}:{port}/{targets}

{schema} is one of rocket://, rockets://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{host}Hostnamestringyes
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{target_channel}Target Channelstringnoprefix #
{target_room}Target Room IDstringno
{target_user}Target Userstringnoprefix @
{targets}Targetslistnoany of target_channel, target_room, target_user; separated by /
{token}API Tokenstringnosecret
{user}Usernamestringno
{webhook}Webhookstringno

Query parameters

ParameterMeaningTypeDefaultNotes
avatarUse Avatarboolno (usually; depends on the URL)
modeWebhook Modechoiceone of webhook, token, basic
toTargetslistsets {targets}
webhookWebhookstringsets {webhook}

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):

rocket://user:pass@localhost/room
rockets://user:pass@localhost/#channel
rocket://user:pass@localhost:8080/room/
rockets://web/token@localhost/@user/#channel/roomid
rockets://user:tttttttttttttttttttttttttttttttttttttttt@localhost/#channel/@bob/room1
rockets://web/token@localhost/?avatar=No
rockets://user:token@localhost/#channel?mode=token
rocket://user:pass@localhost/#channel1/#channel2/?avatar=Yes

Rejected URLs:

rocket://
rockets://
rocket://:@/
rocket://localhost

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'rocket://user:pass@localhost/room'

Notes

Rocket.Chat (rocket://, rockets://): messages to Rocket.Chat channels and users.

Webhook URLs (rocket://[user:]abc/def@host) put a / inside the userinfo; the raw URL is rewritten and parsed again.