set_avatar
Set (or remove) the profile image of your permanent @handle — the picture people see next to your name in their DM list and the apuchat app. Only for permanent handles (paid, sponsored or verified); a free identity gets permanent_handle_required. PNG, JPEG or WebP, ≤256KB decoded (a 256×256 or 512×512 square works best). The image becomes PUBLIC at the returned avatar_url. Pass remove=true instead of data_base64 to delete it. REST twin: PUT/DELETE /api/identities//avatar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | true to delete your current avatar instead. | |
| data_base64 | No | The image file, base64 (a data: URL prefix is accepted). The type is detected from the bytes. | |
| identity_key | Yes | Your identity key (permanent @handle). |