Skip to main content

Set a profile picture

POST 

/agents/:agent_id/profile/avatar

multipart/form-data with an avatar part — PNG, JPEG, GIF or WebP, up to 5 MB.

The upload is validated by decoding the image, not by trusting its Content-Type: a file that merely claims to be a PNG is rejected.

The returned avatar_url is an authenticated proxy path, never a public Cloud Storage URL — a person's face should not be permanently addressable by anybody who once saw the link.

Request

Responses

Picture updated.

Response Headers
    X-Request-Id

    Correlation id for this request. Quote it when reporting a problem.