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

Streamlabs

Schemesstrmlabs://
Cargo featureservice-streamlabs
Servicehttps://streamlabs.com/
Body formatstext (first is the default)
Attachmentsno
Title length250 characters
Body length255 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{access_token}/

{schema} is one of strmlabs://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{access_token}Access Tokenstringyessecret; must match ^[a-z0-9._-]{20,}$

Query parameters

ParameterMeaningTypeDefaultNotes
alert_typeAlert Typechoicedonationone of follow, subscription, donation, host
amountAmountint, min 00
callCallchoiceALERTSone of ALERTS, DONATIONS
currencyCurrencystringUSDmust match ^[A-Z]{3}$
durationDurationint, min 01000
identifierIdentifierstringdefaults to the application id
image_hrefImage Linkstring
nameNamestringAnon (usually; depends on the URL)must match ^[^\s].{1,24}$
sound_hrefSound Linkstring
special_text_colorSpecial Text Colorstringmust match ^[A-Z]$

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

strmlabs://eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.c2lnbmF0dXJl
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?call=donations
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?alert_type=subscription
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?call=donations&amount=2.5
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?call=donations&amount=10&currency=eur&name=Joe&identifier=me

Rejected URLs:

strmlabs://
strmlabs://a_bd_/
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?currency=ABCD
strmlabs://IcIcArukDQtuC1is1X1UdKZjTg118Lag2vScOmso/?alert_type=invalid

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'strmlabs://eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIn0.c2lnbmF0dXJl'

Notes

Streamlabs (strmlabs://): API v2.0 alerts and donations.

POST https://streamlabs.com/api/v2.0/{alerts,donations} with the access token as a Bearer header (v2.0 refuses it in the body) and a JSON body.

Differences with Apprise

  • Apprise posts forms to API v1.0 with access_token in the body, while mercurio uses API v2.0 (Bearer header, JSON, empty options left out), since Streamlabs is disabling v1.0.
  • The donation identifier defaults to the application id and sound_href keeps its case (Apprise upper-cases the URL).