Server Description Images
Manage images used within server descriptions. These images are uploaded separately and can be embedded in the server description using markdown.
Base Endpoint
Section titled “Base Endpoint”All description image endpoints are prefixed with /servers/description-images
Upload Description Image
Section titled “Upload Description Image”POST /servers/description-images/:serverId/uploadUpload an image to use in a server description. Images are temporary until the server is saved.
Authentication: Required
Content-Type: multipart/form-data
URL Parameters:
serverId(string) - Server ID
Form Data:
file(file) - Image file (PNG, JPG, WEBP, GIF)
Response:
{ "id": "image-id", "url": "https://cdn.orbis.place/server-description-images/...", "fileName": "screenshot.png", "fileSize": 524288, "isTemporary": true, "createdAt": "2024-01-01T00:00:00Z"}Notes:
- Maximum 20 temporary images per user
- If the same image was already uploaded (same hash), returns the existing URL
- Images become permanent when the server description is saved with the image URL
- Temporary images are automatically cleaned up after 7 days if not used
Usage in Markdown:
Get Temporary Images
Section titled “Get Temporary Images”GET /servers/description-images/:serverId/temporaryGet all temporary images uploaded for a specific server by the current user.
Authentication: Required
URL Parameters:
serverId(string) - Server ID
Response:
{ "images": [ { "id": "image-id", "url": "https://cdn.orbis.place/server-description-images/...", "fileName": "screenshot.png", "fileSize": 524288, "isTemporary": true, "isUsed": false, "createdAt": "2024-01-01T00:00:00Z" } ]}Delete Temporary Image
Section titled “Delete Temporary Image”DELETE /servers/description-images/:serverId/:imageIdDelete a temporary image that hasn’t been used yet.
Authentication: Required
URL Parameters:
serverId(string) - Server IDimageId(string) - Image ID
Response:
{ "message": "Image deleted successfully"}Notes:
- Can only delete images that are not currently used in a server description
- Only the user who uploaded the image can delete it