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

# Get Organization Connected App

> Retrieve a specific Connected App for an Organization using the Stytch Vanilla JS SDK

export const includeScopes_0 = undefined;

export const organization = "Represents an instance or tenant in your application, typically mapping to each of your top-level customers.";

export const member = "Represents an individual end user's account within a given Organization, uniquely identified within that Organization by their email address.";

`organization.getConnectedApp` wraps the [Get Connected App](/api-reference/b2b/api/connected-apps/consent-management/get-connected-app-details) API endpoint.

The `organization_id` will be automatically inferred from the logged-in <Tooltip tip={member}>Member's</Tooltip> session.

This method retrieves information about the specified Connected App as well as a list of Members in the <Tooltip tip={organization}>Organization</Tooltip> who have completed an authorization flow with the Connected App.

## Parameters

<ParamField body="connected_app_id" type="string" required>
  The ID of the Connected App.
</ParamField>

## Response

<ResponseField name="connected_app_id" type="string">
  The ID of the Connected App.
</ResponseField>

<ResponseField name="name" type="string">
  The name of the Connected App.
</ResponseField>

<ResponseField name="description" type="string">
  A description of the Connected App.
</ResponseField>

<ResponseField name="client_type" type="string">
  The type of Connected App. Supported values are `first_party`, `first_party_public`, `third_party`, and `third_party_public`.
</ResponseField>

<ResponseField name="logo_url" type="string">
  The logo URL of the Connected App, if any.
</ResponseField>

{includeScopes_0 && (
<ResponseField name="scopes_granted" type="string[]">
  The scopes granted to the Connected App at the completion of the last authorization flow.
</ResponseField>
)}

<ResponseField name="active_members" type="array[objects]">
  Details about Members who has installed a Connected App.

  <Expandable title="properties">
    <ResponseField name="member_id" type="string">
      Globally unique UUID that identifies a specific Member.
    </ResponseField>

    <ResponseField name="granted_scopes" type="array[string]">
      Scopes that were granted at the completion of the last authorization flow.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestIdResponseField />

<StatusCodeResponseField />

<Panel>
  <RequestExample>
    ```javascript theme={null}
    import { StytchB2BClient } from '@stytch/vanilla-js/b2b';

    const stytch = new StytchB2BClient('public-token-test-b8c84de4-7d58-4ffc-9341-432b56596862');

    const getConnectedApp = async (connectedAppId) => {
      const response = await stytch.organization.getConnectedApp({
        connected_app_id: connectedAppId
      });
      return response;
    };
    ```
  </RequestExample>

  <ResponseExample>
    ```json theme={null}
    {
      "status_code": 200,
      "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
      "client_type": "third_party_public",
      "connected_app_id": "...",
      "name": "Third Party Public",
      "description": "Third Party Public App",
      "logo_url": null,
      "active_members": [
        {
          "member_id": "member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f",
          "granted_scopes": [
            "openid",
            "profile",
            "email"
          ]
        }
      ]
    }
    ```
  </ResponseExample>
</Panel>
