# /me/change-info/verify-email - Complete a pending email change

**POST /me/change-info/verify-email**

Apply the email change parked by `POST /me/change-info`, once the one-time code mailed to the new
address proves the caller controls it. The address is taken from the pending change, never from this
request. Five wrong codes drop the pending change; a new one must then be requested. The old address
stays in effect until this call succeeds. Rate limited per client IP.



## Servers
- Backend API server: https://my.nethesis.it/backend/api (Backend API server)


## Authentication methods
- Bearer auth


## Parameters



### Body: application/json (object)

- **code** (string)
  The one-time code mailed to the new address by `POST /me/change-info`



## Responses
### 200
Email changed

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** (object)


### 400
Wrong or expired code (`validation_error` on key `code`), no pending email change
(`data.type = no_pending_email_change`), or too many wrong codes (same type; the pending
change was dropped)


#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** (object)


### 409
The verified address already belongs to another account

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** (object)


### 401
Unauthorized - invalid or missing JWT token

### 429
Rate limit exceeded

### 503
The verification store is unavailable; nothing was applied

### 500
Internal server error

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** (object | null)



[Powered by Bump.sh](https://bump.sh)
