Account
Upload avatar
POST
Upload a new profile avatar image. Accepts JPEG, PNG, WebP, or GIF up to 2 MB.
sessioncookie
better-auth.session_token<token>Better Auth session cookie
multipart/form-data- body
file*fileFormat
binaryURL of the uploaded avatar image
application/json- response
imageUrl*stringURL of the uploaded avatar image
curl -X POST "https://example.com/account/avatar" \ -F file="string"{ "imageUrl": "string"}