Get post picture
/api/posts/pictures/{id}A picture kept for a post.
Needs the ViewPosts permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/posts/pictures/497f6eca-6276-4993-bfeb-53cbbbba6f08""string"Upload post picture to VRChat POST
Uploads a post's picture, kept with `POST /api/posts/picture`, to VRChat, on the VRChat account Modbot signs in as, for a VRChat group post. Answers with the file id VRChat gave it; send that as the VRChat section's `imageId`. Only a PNG or JPEG of at most 10 MB. One request to VRChat, at most one a minute and never retried. Answers 409 "Picture uploads are off." until the operator turns VRChat picture uploads on in Settings, and 409 "Modbot's VRChat account needs VRChat+ to use pictures." while the account is known to have none; while uploads are off a VRChat post goes as text only. Needs the `ManagePosts` permission.
Fetch picture link for a post POST
Fetches the picture behind a link and returns its bytes, for the composer to crop in the browser. Only https addresses on the public internet, at most 10 MB, and only a picture by its bytes. A VRChat file link is fetched with Modbot's VRChat session, only while VRChat pictures are fetched through this server. Nothing is kept. Needs the `ManagePosts` permission.