Modbot Docs

Upload post picture to VRChat

POST/api/posts/vrchat-picture

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.

AuthorizationBearer <token>

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

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/posts/vrchat-picture" \  -H "Content-Type: application/json" \  -d '{    "pictureId": null  }'
{  "imageId": "string",  "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16"}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.