Start signing in with Bluesky
/api/settings/bluesky/sign-inOnly when the public address is https with no port. Finds the account from the handle (the one given, or the stored one) both ways, asks the account's sign-in server for a sign-in (PAR, PKCE, DPoP, with Modbot's own signing key) and answers the address of Bluesky's sign-in page. Bluesky sends the browser back to /api/bluesky/callback, which only the person who started may finish, and only for this account. Nothing is saved but the waiting sign-in, good for ten minutes.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/bluesky/sign-in"{ "url": "string"}Check the Bluesky account POST
Find the account from the handle, sign in (the saved session when it still works, otherwise a renewal of the sign-in with Bluesky, or the app password, at most once every 10 minutes and 20 times a day), and read the account's display name and whether it is marked as automated. Never posts and writes nothing to the account. Answers 200 with what it found, a refusal included. While Bluesky is limiting Modbot nothing is sent and the stored result is returned. Needs the `ManageSettings` permission.
Get Twitch settings GET
The Twitch connection: the app's client id, the channel, what the last Check found, whether the poll is on, and the "We're live on Twitch" post: its template, timings and where it goes. The client secret is never returned. Needs the `ManageSettings` permission.