> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Confirm a storefront customer password reset

**Published**: 2026-11-30
**Category**: Commerce

## `POST /customers/password-reset/confirm`

**Confirm a storefront customer password reset**

Sets a new `password` with the `token` from a password reset email.

The email is marked verified and every earlier session token stops working, so the
customer signs in again with `POST /customers/login`.

Returns 200 `{ ok: true }`. An invalid, expired or used link returns 400
`VERIFICATION_LINK_INVALID`. After ten failed attempts from one client, sign-ins
included, further attempts return 429 `RATE_LIMIT_EXCEEDED` with a `Retry-After` header
for up to 15 minutes.

> **Note:** Available only on sites with e-commerce enabled.

### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `token` | string | Yes | Required. Min 1 character |
| `password` | string | Yes | Required. 8-100 characters |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Site, resource, or commerce feature not found |
| `422` | Validation error |


### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

// On the page the reset link opens
await lynkow.customers.passwordReset.confirm({ token: params.token, password: form.password })
await lynkow.customers.login({ email: form.email, password: form.password })
```

---