Upload profile avatar
/v1/auth/me/avatarSets the signed-in administrator's profile picture from a multipart file field and returns the updated profile. Only JPEG, PNG and WebP are accepted, up to 5 MB and 6000 pixels on a side. The image is re-encoded as a 512x512 WebP with all metadata stripped, stored in private object storage, and any previous avatar is deleted. Refuses a missing, unsupported or undecodable file with 400 (avatar.invalid_image) and a body over 5 MB with 413. Limited to 6 uploads a minute.
Request body
multipart/form-data
filestring · binary Optional Responses
application/json
data *AuthProfileDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Rate limit
6 requests per 1mPer caller: the signed-in user for a bearer token; for an API key, the key and the end user's address when a backend forwards it, otherwise the client address
Returned object
curl -X POST "https://auth.canopy-io.com/v1/auth/me/avatar" \ -H "Content-Type: application/json" \ -d '{ "file": "<binary>" }'
{ "data": { "id": "string", "email": "string", "first_name": "string", "last_name": "string", "avatar_url": "string", "pending_email": "string", "email_verified": false, "created_at": "2026-04-20T12:00:00.000Z", "account_role": "owner" } }
Tell us how we can improve this guide.