---
title: "Resolve app, tenant and tenant-user context from an application API key."
method: POST
path: "/v1/account/internal/resolveAppData"
tags: ["internal"]
---

# Resolve app, tenant and tenant-user context from an application API key.

`POST /v1/account/internal/resolveAppData`

## 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/internal/resolveAppData`
- Auth: none declared

## Request body

- StartStopAppTransactionRequestDto
  - `requestId` string: (not in use) A unique id of this request for future tracking. If not provided API will create one for you
  - `apiKey` string, required: The api key of the authorized app
  - `tenantId` string: (Optional) if tenant response is wished
  - `tenantUserId` string: (Optional) if tenant user response is wished (Requires tenantId to be set aswell)

## Response `200`

- StartAppTransactionResponseDto
  - `requestId` string, required: A unique id identifying this request. Can be provided or otherwise set by API. Should be used when ending the transaction
  - `app` LightAppResponseDto, required
    - `id` string, required: Unique ID
    - `name` string, required: Name of the app
    - `domain` string, required: Unique domain name of the app (Readonly)
    - `logo` string, required: URL to your logo
    - `websiteUrl` string, required: URL to your website or landing page. E.g. Branded emails will link to this URL, checkout process will redirect to `/payment-success` and `/payment-cancel`
    - `emailSenderName` string: Useful for communication api
    - `emailSenderEmail` string: Useful for communication api
  - `tenant` LightTenantResponseDto
    - `id` string, required: Logical id reference to this instance
    - `locale` string, required: The default locale / lang code for all users in this tenant (`ISO_639-1` format). This property will set the i18n for all platform emails and can be used to
    - `name` string: Name of the tenant. Undefined from the begining until the Tenant owner complets tenant onboarding.
    - `logo` string: Useful for communication api
    - `plan` string
  - `tenantUser` LightTenantUserResponseDto
    - `id` string, required: Logical id reference to this instance
    - `email` string, required: Email address, same as username ATM
    - `username` string, required: Username, same as Email address ATM
    - `fullName` string, required: Users full name (first name and last name concatenated)
  - `apiTokenPrivileges` string[]

---

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