---
title: "Convert anonymous user to authenticated"
method: POST
path: "/auth/user/convert-anonymous"
tags: ["Authentication"]
---

# Convert anonymous user to authenticated

`POST /auth/user/convert-anonymous`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/user/convert-anonymous`
- Auth: HTTP bearer

Add email and password to anonymous user.
Requires auth user access token.
If require_email_confirmation is enabled for the project, the converted
user remains unconfirmed until /auth/confirm succeeds. When email
sending is enabled, a confirmation email is sent during conversion.

## Request body

- object
  - `email` string, email, required
  - `password` string, required: Password validated after NFC normalization against the policy returned by GET /auth/password-policy.
  - `user_metadata` object

## Response `200`

User converted successfully

- object
  - `user` AuthUser
    - `id` string, uuid, required
    - `project_id` string, uuid
    - `email` string, email, required
    - `email_confirmed` boolean
    - `user_metadata` object: User-editable metadata
    - `app_metadata` object: Application-controlled metadata (read-only for users)
    - `avatar_url` string, uri: User avatar URL (from OAuth provider or manually set)
    - `status` 'active' | 'banned' | 'deleted', required
    - `banned_until` string, date-time, nullable: When temporary ban expires (null if not banned or permanent)
    - `last_sign_in_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Not an anonymous user
- `403`: The chosen email domain is not in `allowed_email_domains`
- `409`: Email already in use
- `503`: Compromised-password screening is temporarily unavailable

## Changes

- **2026-09-19** `3a6f365f3f35`: 2 breaking, 14 info
  - the response's body type changed from no type to `object` for status `503`
  - the `user` response's property type changed from no type to `object` for status `200`
  - added the optional property `code` to the response with the `503` status
  - added the optional property `user/app_metadata` to the response with the `200` status
  - …12 more
- **2026-08-27** `bb44e98aba2e`: 4 breaking, 9 warning, 3 info
  - the `user` response's property type changed from `object` to no type for status `200`
  - removed the required property `user/email` from the response with the `200` status
  - removed the required property `user/id` from the response with the `200` status
  - removed the required property `user/status` from the response with the `200` status
  - …12 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/user/convert-anonymous/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
