> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Links and access recovery

> What happens when the e-mail link expired, was used or is invalid, and how the customer asks for a new one.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/contract/{id}` (public, with a one-time link) |
| Menu | Outside the menu: entered from the contract e-mail |
| Feature flag | None |
| Who sees it | Any contract participant whose link does not work |
| Last verified | 2026-11-10 against `develop` (`c10d24f33d`) |

## What it is for

The e-mail link works once and expires. When it cannot be used, the wizard does not leave the customer stranded: it asks for their e-mail and sends a new link.

## How to get there

It shows when opening an expired or used link, when opening the contract without a link, or when the tab session expired.

![Digital contract journey: e-mail link, Welcome, Validate ID, Contract summary, Payment method, Sign documents and Create password, which leads to the portal. The Reject button is available from Validate ID to Sign; Summary and Payment can be revisited before signing.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/digital-contract-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=c6f4b2e7eb8bed0af3f1e07a3d49850c)

Digital contract journey

## What the customer sees

> [tab] Desktop
>
> ![Link expired screen with the e-mail field and the Send new access button.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/link-expired.en.desktop.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=43f96102d21eb60cfec65af8d3d1a3b5)

> [tab] Mobile
>
> ![Link expired screen with the e-mail field and the Send new access button.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/link-expired.en.mobile.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=a932500226c9781eee49bef28a11d8f6)

| Element | What it does |
| - | - |
| Title and explanation | Say why the link does not work |
| **Email address** | The e-mail to receive the new link at |
| **Send new access** | Requests the resend |

## Step by step

**1. Enter the e-mail**

The same e-mail the contract was sent to.

**2. Send new access**

They see: "If your email is registered for this contract, you will receive a new link shortly. Check your inbox."

**3. Open the new e-mail**

The new link takes them to the step where they left off.

### Without a link

> [tab] Desktop
>
> ![Access required screen with the e-mail field.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/access-required.en.desktop.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=d5872eaf585caa418ffb5b396a9ca16a)

> [tab] Mobile
>
> ![Access required screen with the e-mail field.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/access-required.en.mobile.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=a510c824ec87fdf50a0828c805a9e462)

### Invalid contract

If the address is not a valid contract, the wizard shows it is redirecting to the portal to sign in.

> [tab] Desktop
>
> ![We are redirecting you to the customer portal screen with a loading indicator.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/redirecting.en.desktop.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=8eccc73540916d3cca8cbba9453f6c0b)

> [tab] Mobile
>
> ![We are redirecting you to the customer portal screen with a loading indicator.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/redirecting.en.mobile.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=fd1aa85f8237b254823259bfe58583b5)

## Business rules

| ID | Rule |
| - | - |
| R-01 | The e-mail link can be redeemed once and expires after a while |
| R-02 | The contract session lives in the tab and is bound to that contract; it is never used for another |
| R-03 | The resend answers the same message for any e-mail, so it does not reveal who takes part in the contract |
| R-04 | It is not resent for an active, cancelled, rejected or expired contract |
| R-05 | There is a resend limit; once exceeded, the customer waits |
| R-06 | Only an invalid contract id or a server error takes the customer out of the wizard |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| Expired link | "Link expired" | 410 | Ask for a new one |
| Used link | "Link already used" | 409 | Ask for a new one |
| Invalid link | "Invalid link" | 401/403 | Ask for a new one |
| No link | "Access required" | Opened the address without a link or session | Ask for a new one |
| Session expired | "Session expired" | The tab session expired | Ask for a new one |
| Redirecting | "Redirecting you to the customer portal" | Invalid contract id | Sign in to the portal |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "Enter your email address." / "Enter a valid email address." | Empty or mistyped e-mail | — | Fix it |
| "You recently requested a link. Please wait a moment and try again." | Asked for several links in a row | 429 | Wait a moment |
| "We could not send the access link. Please try again in a few seconds." | The resend failed | `POST /api/v3/contract/{id}/resend-access` | Retry; or resend from Horizon Enterprise |

## Why it works this way

![Access recovery: opening the contract redeems the link; if it expired, was used, is invalid or there is no session, the recovery screen resends a link; an invalid id redirects to the portal.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/digital-contract-recovery-process.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=d9acf2227a4a5b2f344d7d12c6357ef2)

How access is recovered

The e-mail link is the key of a customer who has no password yet; for security it is single-use and expires. Recovery gives them a new key without going through support.

## Technical detail

| Aspect | Detail |
| - | - |
| Component | `components/digital-contract/contract-access-recovery-state.tsx`, `contract-redirecting-state.tsx` |
| API | `POST /api/v3/contract/{id}/sessions`, `POST /api/v3/contract/{id}/resend-access` |
| Resend by Maihue | `POST /api/v3/contract/{id}/resend-portal-magic-link` (`contract:resend-portal-magic-link`) |
| Texts | `messages` › `contract.recovery`, `contract.redirecting` |

More detail in [Session and access](https://docs.bbrands.io/digital-contracting/session-and-access.md).

## FAQ and support cases

> [accordion] The customer asked for a new link and it does not arrive
>
> Check spam and that they use the contract e-mail. Otherwise, resend from Horizon Enterprise.

> [accordion] The link says it was already used, but they did not finish
>
> Each link works once. They must ask for a new one; they will resume from where they left off.

## Related and history

* [Flow overview](https://docs.bbrands.io/portal-customer/digital-contract/overview.md)

| Date | Change |
| - | - |
| 2026-11-10 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.