---
title: "Update Firebase Email"
method: POST
path: "/api/email-verification/update-email"
---

# Update Firebase Email

`POST /api/email-verification/update-email`

## Request

- Base URL: `https://backend.praktiki.io` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.praktiki.io/api/email-verification/update-email`
- Auth: HTTP bearer

Update the user's email in Firebase Auth via the Admin SDK.
Only succeeds if the OTP verification for this email was completed.

## Request body

- UpdateEmailRequest
  - `email` string, required
  - `purpose` string

## Response `200`

Successful Response

- UpdateEmailResponse
  - `status` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/praktiki/apis/praktiki-api.md) - [All operations](https://skmtc.dev/praktiki/apis/praktiki-api/llms.txt) - [OpenAPI document](https://skmtc.dev/praktiki/apis/praktiki-api/revisions/3428f9e0a922?raw)
