Upload Agent avatar
agent_avatar_uploadStores a PNG, JPEG or WebP picture (up to 10 MB) the host passes as a download URL.
The picture is squared to 512 px; the same picture returns the same URL. It shows once agent_draft_edit sets avatar_url and the draft is published. Files that exist only on the user's computer are set in the Agent settings page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Avatar image supplied by the host as a download URL and file metadata. | |
| agent_id | Yes | Agent ID from agents_list or agent_create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | ||
| agent_id | Yes | ||
| avatar_url | Yes |