From c7d6167dbc37c1c100378d183199d218dfcbe875 Mon Sep 17 00:00:00 2001 From: Bastian Date: Thu, 19 Dec 2024 08:57:37 +0100 Subject: [PATCH] Document Authorization header for WebSocket API (#1576) Fixes #1575 Co-authored-by: Bastian Blank --- content/en/methods/streaming.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/en/methods/streaming.md b/content/en/methods/streaming.md index b820afa..e62785a 100644 --- a/content/en/methods/streaming.md +++ b/content/en/methods/streaming.md @@ -600,6 +600,12 @@ wss://mastodon.example/api/v1/streaming Open a multiplexed WebSocket connection to receive events. +#### Request +##### Headers + +Authorization +: {{}} Provide this header with `Bearer ` to gain authorized access to this API method. + ##### Parameters {{< hint style="info" >}} @@ -619,7 +625,7 @@ Example unsubscription from user updates: {{}} access_token -: {{}} String. A user-authorized OAuth token. +: {{}} String. A user-authorized OAuth token. Alternative to `Authorization` header. stream : {{}} String. The stream to watch for events. See [Streams](#streams) for possible values.