# Upload avatar during register interaction
**POST /api/experience/user-assets/avatar**
Upload an image (e.g. avatar) during the `Register` experience interaction and return the public URL of the uploaded asset. The user account may not have been created yet at this point; the upload is scoped to the current interaction session. The returned URL can then be submitted as a profile field value via `POST /api/experience/profile`.
## Servers
- Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.)
## Parameters
### Body: multipart/form-data (object)
- **file** ()
The avatar image file to upload. Must be an allowed image type and not exceed the maximum upload file size.
## Responses
### 200
The asset was uploaded successfully.
#### Body: application/json (object)
- **url** (string)
### 400
Invalid request.
- The current interaction event is not `Register`.
- The file is invalid, exceeds the maximum size, has a disallowed image type, or storage is not configured.
### 403
Permission denied for the current interaction state.
### 404
Entity not found related to the current interaction.
### 500
Failed to upload the file to the storage provider.
[Powered by Bump.sh](https://bump.sh)