Skip to main content
PUT
Upload my avatar

Authorizations

scribe_session
string
cookie
required

Browser session cookie set by the WorkOS sign-in flow.

Body

Raw image bytes of the new avatar (PNG, JPEG, or WebP, at most 2 MB).

The body is of type file.

Response

The avatar was stored.

Result of an avatar upload.

avatarUrl
string
required

URL where the uploaded avatar can be fetched.

Example:

"/api/uploads/users/usr_V1StGXR8_Z5jdHi6BmyT/avatar"