---
title: "Confirm a pending email change for the current user"
method: POST
path: "/users/me/email/confirm/"
tags: ["Personal account"]
---

# Confirm a pending email change for the current user

`POST /users/me/email/confirm/`

## Request

- Base URL: `https://dashboard.hologram.io/api/1`
- URL: `https://dashboard.hologram.io/api/1/users/me/email/confirm/`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hologram/apis/hologram-rest-api-v1/docs/users/me/email/confirm/post.ts> (a function with typed inputs; its response is checked against the schema)

Submits the verification code Cognito emailed to the new address. On success the new email is saved and the updated user is returned. Requires a Cognito bearer token.

## Request body

- object
  - `code` string, required: Verification code from the email
  - `email` string, email, required: The new email address being confirmed

## Response `200`

OK

- UserResponse
  - `success` boolean: Indicates whether the request was successful.
  - `data` UserObject
    - `id` integer
    - `email` string, email
    - `first` string
    - `last` string
    - `role` string
    - `partnerid` integer
    - `registered` string, date-time
    - `is_verified` 0 | 1
    - `has_password` 0 | 1
    - `defaultaddressid` integer, nullable
    - `deleted` 0 | 1
    - `personal_org` integer, nullable: Personal organization ID; present on single-user responses
    - `impersonated_by` object, nullable: Present when the current session is being impersonated
    - `email_status` 'CONFIRM_PENDING': Present on update responses while an email change awaits confirmation

## Other responses

- `400`: Wrong code (error_code INVALID_CODE), expired code (error_code CODE_EXPIRED) or invalid email
- `401`: Unauthorized: missing, expired or revoked bearer token
- `403`: Forbidden while acting on behalf of another user
- `409`: Email address is already in use (error_code EMAIL_UNAVAILABLE)
- `429`: Too many attempts (error_code TOO_MANY_ATTEMPTS)
- `500`: Cognito error (error_code COGNITO_ERROR)

---

[API](https://skmtc.dev/hologram/apis/hologram-rest-api-v1.md) - [All operations](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/revisions/1bc07dcd1631?raw)
