/v1/me/avatarAuthUpload (or replace) the caller's avatar. PNG/JPEG/WEBP only — SVG is rejected because user-uploaded SVG from a productcraft.co origin is a stored-XSS vector. ≤2 MB. Magic bytes are sniffed; a mislabeled file is rejected.
Response · 200
avatar_url*stringURL of the uploaded avatar image.
Example
Request
POST https://api.platform-auth.productcraft.co/v1/me/avatar
Authorization: Bearer YOUR_TOKENResponse
{
"avatar_url": "string"
}