---
title: "Upload avatar during register interaction"
method: POST
path: "/api/experience/user-assets/avatar"
tags: ["Experience"]
---

# 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`.

## Response `200`

The asset was uploaded successfully.

- object
  - `url` string, required

## Other responses

- `400` — Invalid request. <br/>- The current interaction event is not `Register`. <br/>- 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.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
