---
title: "Userportal Upload Avatar"
method: POST
path: "/userportal/avatar"
tags: ["userportal-public"]
---

# Userportal Upload Avatar

`POST /userportal/avatar`

## Request

- Base URL: `https://api.feedback1.ai/api/v1`
- URL: `https://api.feedback1.ai/api/v1/userportal/avatar`
- Auth: none declared

Upload an avatar image for the current userportal user.

## Headers

- `authorization` string, nullable

## Request body

- UserportalAvatarUploadRequest: Upload avatar as base64-encoded image data.
  - `imageData` string, required: Base64 image data (with or without data URL prefix)

## Response `200`

Successful Response

- UserportalUser: User info returned from authentication.
  - `id` string, required: Contact ID
  - `email` string, required: User's email
  - `firstName` string, nullable: User's first name
  - `lastName` string, nullable: User's last name
  - `avatarUrl` string, nullable: User's avatar URL
  - `authProvider` string, nullable: Authentication provider
  - `hideNameOnUserportal` boolean: Hide name from public portal users

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/feedback1/apis/feedback1-public-api.md) · [All operations](https://skmtc.dev/feedback1/apis/feedback1-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/feedback1/apis/feedback1-public-api/revisions/e7626420f622?raw)
