Platform API reference

Platform API · Me

post/v1/me/avatarAuth

Upload (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*string

URL of the uploaded avatar image.

Example

Request

POST https://api.platform-auth.productcraft.co/v1/me/avatar
Authorization: Bearer YOUR_TOKEN

Response

{
  "avatar_url": "string"
}