Document Authorization header for WebSocket API (#1576)

Fixes #1575

Co-authored-by: Bastian Blank <waldi@debian.org>
This commit is contained in:
Bastian 2024-12-19 08:57:37 +01:00 committed by GitHub
parent 5c792e83d9
commit c7d6167dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -600,6 +600,12 @@ wss://mastodon.example/api/v1/streaming
Open a multiplexed WebSocket connection to receive events.
#### Request
##### Headers
Authorization
: {{<required>}} Provide this header with `Bearer <user_token>` to gain authorized access to this API method.
##### Parameters
{{< hint style="info" >}}
@ -619,7 +625,7 @@ Example unsubscription from user updates:
{{</hint>}}
access_token
: {{<required>}} String. A user-authorized OAuth token.
: {{<required>}} String. A user-authorized OAuth token. Alternative to `Authorization` header.
stream
: {{<required>}} String. The stream to watch for events. See [Streams](#streams) for possible values.