# Get an email change link

`GET /api/v1/auth/email-change/{token}`

Whether an email change link is still usable, and which address it moves the account to.

Sign-in: none.

Section: Sign-in and account. Operation id in openapi.json: `get_email_change`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `token` | path | yes | string | The token from the link's address. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The link's addresses.

`application/json`: EmailChangeInfo

| Field | Type | Required | Description |
|---|---|---|---|
| `expiresAt` | string | yes |  |
| `newEmail` | string | yes | The address the account moves to. |

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it
- `email_change.not_found`: the email change link does not exist

### 410

Gone.

- `email_change.expired`: the link is older than 24 hours, or a newer request replaced it
- `email_change.used`: the link was already used

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
