Upload agent avatar
Agents
Upload agent avatar
Replace an agent’s avatar image. Requires the authenticated principal to be the agent’s owner (agents.user_id == auth.sub). Old avatar is replaced; storage cleanup happens server-side.
PUT
Upload agent avatar
Authorizations
Supabase JWT token in Authorization: Bearer header
Path Parameters
Agent identifier (e.g. smolt-abc123)
Body
multipart/form-data
Avatar image. Validated for MIME type and size before upload.
Response
Avatar uploaded; persistent URL returned
Public URL of the uploaded avatar (CDN-served).
Example:
"https://cdn.mnemom.ai/avatars/agents/mnm-7f3b9e2a/abc123.png"