---
title: "Sets up the admin app (NBLOCKS_DASHBOARD) with an owner user, properly linked. This is the RECOMMENDED endpoint for Playwright global setup. Combines: 1. App creation (if needed) 2. Owner/tenant creation (if needed) 3. linkApp() call to set critical metadata POST /account/test/playwright/setup-admin-app-with-owner Headers: x-playwright-api-key: <your-api-key> Body: { adminUiUrl: string, ownerEmail: string, ownerPassword?: string } Returns: { appId, domain, tenantId, userId, email, message }"
method: POST
path: "/v1/account/test/playwright/setup-admin-app-with-owner"
tags: ["account"]
---

# Sets up the admin app (NBLOCKS_DASHBOARD) with an owner user, properly linked. This is the RECOMMENDED endpoint for Playwright global setup. Combines: 1. App creation (if needed) 2. Owner/tenant creation (if needed) 3. linkApp() call to set critical metadata POST /account/test/playwright/setup-admin-app-with-owner Headers: x-playwright-api-key: <your-api-key> Body: { adminUiUrl: string, ownerEmail: string, ownerPassword?: string } Returns: { appId, domain, tenantId, userId, email, message }

`POST /v1/account/test/playwright/setup-admin-app-with-owner`

## 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/setup-admin-app-with-owner`
- Auth: none declared

## Request body

- SetupAdminAppWithOwnerRequestDto

## Response `201`

---

[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)
