---
agentTools:
  projectIndex: https://evolutionscript.readme.io/llms.txt
---

# Confirm Email Change

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Api with Access Token",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yoursite.com/api/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/user/update/email/confirm": {
      "post": {
        "summary": "Confirm Email Change",
        "description": "",
        "operationId": "confirm-email-change",
        "parameters": [
          {
            "name": "Authentication",
            "in": "header",
            "description": "Ex: Bearer {access_token} should be replaced with the user access token.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer {access_token}"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "code",
                  "token"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "The verification code sent to new email address."
                  },
                  "token": {
                    "type": "string",
                    "description": "The  activation token received in the Change Email request."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status:\"success\",\n  activation: false,\n  token: ''\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status:\"error\",\n  message: 'invalid_verification_code'\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65bd0d9a8cfebc004220b8d8:65c5cd254e70d10066932d78"
}
```