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.
Responses
-
The asset was uploaded successfully.
-
Invalid request.
- The current interaction event is notRegister.
- The file is invalid, exceeds the maximum size, has a disallowed image type, or storage is not configured. -
Permission denied for the current interaction state.
-
Entity not found related to the current interaction.
-
Failed to upload the file to the storage provider.
POST
/api/experience/user-assets/avatar
curl \
--request POST 'https://[tenant_id].logto.app/api/experience/user-assets/avatar' \
--header "Content-Type: multipart/form-data"
Response examples (200)
{
"url": "string"
}