<@U04S8PLJWMT> How does Airbyte application gets t...
# ask-ai
j
@kapa.ai How does Airbyte application gets the workspace Id?
k
Airbyte applications can obtain the workspace ID in several ways: 1. Via the Airbyte API: You can use the Airbyte API to list all workspaces accessible to your account. After authenticating and obtaining an access token, make a GET request to the
/api/public/v1/workspaces
endpoint. The response will include a list of workspaces, each with its
workspaceId
,
name
, and `dataResidency`:
Copy code
bash    GET <YOUR_WEBAPP_URL>/api/public/v1/workspaces
Example response:
Copy code
json    {      "data": [        {          "workspaceId": "b5367aab-9d68-4fea-800f-0000000000",          "name": "Finance Team",          "dataResidency": "auto"        },        {          "workspaceId": "b5367aab-9d68-4fea-800f-0000000001",          "name": "Analytics Team",          "dataResidency": "auto"        }      ]    }
This allows your application to programmatically retrieve all workspace IDs available to the authenticated user or application key. [Configuring API Access (Enterprise)](https://docs.airbyte.com/platform/enterprise-setup/api-access-config) [Configuring API Access (1.7)](https://docs.airbyte.com/platform/1.7/enterprise-setup/api-access-config) 2. Via the Airbyte UI: When logged into the Airbyte UI, workspace information (including the workspace ID) is available in the organization settings under Settings > Organization > General. This is a manual method for users to look up workspace IDs. [Check which region your workspaces use](https://docs.airbyte.com/platform/enterprise-setup/multi-region#check-which-region-your-workspaces-use) 3. Via the Database (for self-managed deployments): If you have direct access to the Airbyte configuration database, the
workspace
table contains the
id
column, which is the workspace ID. [Database Data Catalog](https://docs.airbyte.com/platform/understanding-airbyte/database-data-catalog#workspace) In summary, the most common and recommended way for an application to get the workspace ID is by listing workspaces via the Airbyte API after authenticating with an access token.