Internal
Upload and compress image
Changed onUpload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are rasterized before publication. Returns the uploaded image URL and metadata.
post/internal/upload/image
Request
- Base URL: https://api.session.services
- URL: https://api.session.services/internal/upload/image
- Auth: API key in header x-tenant-id
Request body
Response
OK
Example response
{
"src": "https://assets.session.services/my-image.jpg",
"alt": "My Image",
"width": 1080,
"height": 1080
}Changes
- info
added the non-success response with the status
- info