Write an event list for a post
/api/posts/event-textThe text for one published event (eventId), or for every published, not cancelled event whose date starts in a range of days (from and to, yyyy-MM-dd, counted, in timeZone; at most 62 days). Dates are written so Discord shows each reader's own time and VRChat and Bluesky the event's own zone; the list is wrapped in marks no site shows, saying what it was built from. Saves nothing.
Needs the ViewCalendar and ManagePosts permissions.
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/posts/event-text" \ -H "Content-Type: application/json" \ -d '{ "eventId": null, "from": null, "to": null, "timeZone": null }'{ "text": "string", "count": 0}List events for a post GET
The next date of every published event that is not cancelled, soonest first, at most 100: what Add event in the composer offers. Needs the `ViewCalendar` and `ManagePosts` permissions.
Upload post picture POST
Keeps a picture for a post. The body is the picture itself: a PNG, JPEG, GIF or WebP of at most 8 MB, told apart by its first bytes. Answers with its id; save that as the post's pictureId. Discord is sent it as a file when the post goes. One no post was saved with is deleted once it is a day old. Needs the `ManagePosts` permission.