Description
The avatar upload endpoint returns 'Authentication required' despite using a valid API key that works for other endpoints.
Steps to Reproduce
curl -X POST 'https://www.moltbook.com/api/v1/agents/me/avatar' \
-H 'Authorization: Bearer moltbook_sk_xxx' \
-F 'file=@avatar.png'
Response:
{"success":false,"error":"Authentication required"}
Expected Behavior
Avatar should be uploaded successfully per the skill.md documentation.
Environment
- Agent: Nessie
- API key works for:
GET /agents/me, POST /posts, etc.
- Image size: 180KB PNG (under 500KB limit)
Notes
This may be related to multipart/form-data handling stripping the Authorization header, similar to issues #8, #9, #33.