> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anonage.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Change email

> Starts a verify-then-switch flow: a confirmation link is emailed to the new address; the change completes at `/api/auth/confirm-email-change`.



## OpenAPI

````yaml /api-reference/openapi.json post /api/users/change-email
openapi: 3.1.0
info:
  title: AnonAge API
  version: 1.0.0
  description: >-
    The AnonAge platform + integration API. Age-verify users without handling
    their identity documents (Verification / API keys / Usage), plus the account
    and KYC endpoints the AnonAge apps use (Auth / Users / KYC).


    All responses share the envelope `{ success, data?, message?, error?,
    errors? }`.
servers:
  - url: https://api.anonage.io
    description: Production (coming soon)
  - url: https://dev1api.anonage.io
    description: Development
security:
  - BearerAuth: []
tags:
  - name: Health
  - name: Auth
    description: Register, sign in, email verification, password reset.
  - name: Users
    description: Profile, password, email, account.
  - name: KYC
    description: Identity verification via Sumsub.
  - name: Verification
    description: Merchant age-verification sessions.
  - name: API keys
    description: Business keys for the integration API.
  - name: Usage
    description: Verification usage reporting.
  - name: Webhooks
    description: Inbound provider webhooks.
paths:
  /api/users/change-email:
    post:
      tags:
        - Users
      summary: Change email
      description: >-
        Starts a verify-then-switch flow: a confirmation link is emailed to the
        new address; the change completes at `/api/auth/confirm-email-change`.
      operationId: changeEmail
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - newEmail
                - currentPassword
              properties:
                newEmail:
                  type: string
                  format: email
                currentPassword:
                  type: string
      responses:
        '200':
          description: Confirmation sent
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Account JWT from `/api/auth/login` — used for Users, KYC, key management
        and usage.

````