Skip to main content
PUT
Upload an agent's avatar
Sets the image shown for the agent. The format is detected from the bytes, not the header. See Agent access for managing agents in a workspace. Raw image bytes in the body (PNG, JPEG, GIF, or WebP; SVG is refused). The format is detected from the bytes, not the header. Capped at 1 MB. Each upload rotates the public URL.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agentId
string
required

Body

image/*

The body is of type file.

Response

The new public avatar URL

imageUrl
string