---
title: Start a customer session
endpoint: POST /api/v3/users/login
description: "Always MFA-aware: a customer with two-factor enrolled receives a challenge rather than tokens."
---

`POST /api/v3/users/login`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `emailAddress` | email | required | `customer@example.com` |  |
| `password` | password | required |  |  |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | Tokens, or a challenge. |
| 400 | Invalid request. |
| 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. `temporarily_unavailable` — the sign-in could not be decided because the identity service was unreachable; the credentials were neither accepted nor refused. Retry after `Retry-After` seconds. Told apart from any other 503, and from bad credentials (401), 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` |  |
| `twoFactorRequired` | boolean | optional |  | When true, no tokens are issued — complete the challenge first. |
| `emailCodeRequired` | boolean | optional |  | When true, no tokens are issued: a 6-digit code was mailed to the account's address to confirm this device. |
| `challengeId` | string | optional | `6c1f0b9e-2a47-4d1e-9b3c-5e8f7a2d4c10` | The challenge the second step redeems; set with twoFactorRequired or emailCodeRequired. |
