Upload Profile Picture​
POST
/auth/upload/picture
Upload or update user profile picture. Automatically deletes previous picture if exists. Supports image optimization and cloud storage.
Authorizations​
SessionAuth
Session ID for authenticated requests
TypeAPI Key (header: X-Session-ID)
Request Body​
multipart/form-data
picture
string
Required
Image file (JPEG, PNG, WebP supported)
Format
"binary"Responses​
Picture uploaded successfully
application/json
{
"success": true,
"data": {
"picture_url": "https://cdn.example.com/users/usr_123/picture.jpg",
"file_size": 45678,
"original_size": 123456,
"compression_ratio": "63%",
"method": "cloud_config"
},
"message": "Picture uploaded successfully",
"timestamp": "string"
}