---
title: Confirm a registration
endpoint: POST /api/v3/users/confirm
description: Confirms the account with the code `POST /api/v3/users` mailed and the `confirmationToken` it returned, and signs the customer in. Every failure — wrong, expired or superseded code, a wrong confirmationToken, an unknown address, or an account not awaiting confirmation — answers the same 400 `invalid_code`, so a wrong guess never reveals which part was wrong.
---

`POST /api/v3/users/confirm`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `email` | email | required | `customer@example.com` |  |
| `code` | string | required |  |  |
| `confirmationToken` | string | required |  | The value `POST /api/v3/users` returned alongside `resendAvailableAt`. Only the screen that submitted the registration holds it. |
| `deviceToken` | string | optional |  | The device credential a previous call issued to this browser, if it has one. The response returns a rotated value which the caller must store in place of the old one. |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | Confirmed. The same session shape a login returns. |
| 400 | `invalid_code` — identical for every failure reason. |
| 401 | Bad credentials. |
| 503 | `maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `token` | string | optional | `eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5ZmM` |  |
| `refreshToken` | string | optional | `v3.rt.8f2c1d9a4b7e6301f5a2c8d4b9e0736a` |  |
| `uuid` | string | optional | `9fc3a1b8-52d7-4e60-9a13-7c8b4d2e5f09` |  |
| `deviceToken` | string | optional | `v3.dt.1a7f4c92e08b5d63a4f1c7e920b8d365` |  |
