> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/mutations/confirm-account

# confirmAccount Mutation

Confirm user account with token sent by email during registration.

Triggers the following webhook events:

-   ACCOUNT\_CONFIRMED (async): Account was confirmed.

```graphql
confirmAccount(
  email: String!
  password: String
  token: String!
): ConfirmAccount
```

Details

```graphql
type ConfirmAccount {
  user: User
  accountErrors: [AccountError!]! @deprecated
  errors: [AccountError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="email"></a>

#### [`email`](#email) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

E-mail of the user performing account confirmation.

<a id="password"></a>

#### [`password`](#password) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Password of the user confirming their account. Required when `REQUIRED_PASSWORD` mode is enabled in shop settings. Learn more at [https://docs.saleor.io/upgrade-guides/core/migrate-account-merging](/upgrade-guides/core/migrate-account-merging.md)

<a id="token"></a>

#### [`token`](#token) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

A one-time token required to confirm the account.

<a id="type"></a>

### Type

<a id="confirmaccount"></a>

#### [`ConfirmAccount`](/api-reference/users/objects/confirm-account.md)

Confirm user account with token sent by email during registration.

Triggers the following webhook events:

-   ACCOUNT\_CONFIRMED (async): Account was confirmed.
