v11

latestOpenAPI 3.1.12026-08-03174162.0 MB
Internal

Upload and compress image

Upload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are uploaded as-is without compression. Returns the uploaded image URL and metadata.

post/internal/upload/image

Request body

{"stackTrail":"paths:/internal/upload/image:post:requestBody:content:application/json:schema:properties:file","oasType":"schema","type":"unknown","description":"Image file to upload (max 10MB)"}
folder'avatars' | 'events' | 'teams' | 'promoters' | 'venues' required

Folder to upload to

widthinteger

Target width in pixels

heightinteger

Target height in pixels

Response

OK

srcstring uri required
altstring required
widthnumber required
heightnumber required

Example response

{
  "src": "https://assets.session.services/my-image.jpg",
  "alt": "My Image",
  "width": 1080,
  "height": 1080
}