---
title: "Retrieves the last MFA code generated for a phone number. The code is cached in-memory when PLAYWRIGHT_TEST_API_KEY is set. Use this after triggering an MFA SMS to get the OTP without email/SMS access. GET /account/test/playwright/mfa-last-code?appDomain=...&phoneNumber=... Headers: x-playwright-api-key: <your-api-key> Returns: { code: string, expiresAt: number }"
method: GET
path: "/v1/account/test/playwright/mfa-last-code"
tags: ["account"]
---

# Retrieves the last MFA code generated for a phone number. The code is cached in-memory when PLAYWRIGHT_TEST_API_KEY is set. Use this after triggering an MFA SMS to get the OTP without email/SMS access. GET /account/test/playwright/mfa-last-code?appDomain=...&phoneNumber=... Headers: x-playwright-api-key: <your-api-key> Returns: { code: string, expiresAt: number }

`GET /v1/account/test/playwright/mfa-last-code`

## Request

- Base URL: `https://api.thebridge.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebridge.dev/v1/account/test/playwright/mfa-last-code`
- Auth: none declared

## Query parameters

- `appDomain` string, required
- `phoneNumber` string, required

## Response `200`

---

[API](https://skmtc.dev/thebridge/apis/bridge-api.md) · [All operations](https://skmtc.dev/thebridge/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebridge/apis/bridge-api/revisions/290fffcb3d80?raw)
