Fetch picture link
/api/calendar/picture-linkFetches the picture behind an event's picture link and returns its bytes, for the form to crop. Needs Manage calendar or Manage templates. The link must be https on port 443. Modbot connects only to public addresses, checks every redirect the same way and follows at most three, reads a page only as far as its og:image or twitter:image, stops at 10 MB and 15 seconds, and returns only PNG, JPEG, GIF, WebP, BMP, AVIF or HEIC, told apart by the bytes. A VRChat file link is fetched with Modbot's VRChat session. Nothing is kept.
Needs the ViewCalendar 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/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/calendar/picture-link" \ -H "Content-Type: application/json" \ -d '{ "url": null }'"string"Get GIF search key GET
The Klipy key the form's GIF button searches with, or null when the owner has set none. Needs Manage calendar or Manage templates. Klipy has each person's browser search and load its GIFs itself, so the key goes to the browser; it is set in Settings under Bluesky. Needs the `ViewCalendar` permission.
List possible duplicate Discord events GET
Events in the Discord server, made by anyone, that look like copies of each other: the same title once case, spaces, punctuation, emoji and anything in brackets are left out, starting at most 15 minutes apart. Says which bot made each copy and which is Modbot's own; a person is never named. Discord is asked at most once every five minutes. Changes nothing. Needs the `ViewCalendar` permission.