> ## 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 All Organization Connected Apps

> Retrieve all Connected Apps for an Organization using the Stytch React 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.";

The `organization.getConnectedApps` method wraps the [Get Connected Apps](/api-reference/b2b/api/connected-apps/consent-management/get-connected-apps-organization) API endpoint.

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

This method retrieves a list of Connected Apps that have been installed by the <Tooltip tip={organization}>Organization's</Tooltip> Members. A Connected App can be considered to be installed if at least one of the Organization's Members has successfully completed an authorization flow with the Connected App and no revocation has occurred since that completion.

A Connected App may be uninstalled if the Organization changes its `first_party_connected_apps_allowed_type` or `third_party_connected_apps_allowed_type` policies.

## Response

<ResponseField name="connected_apps" type="array[objects]">
  An array of Connected Apps which have been installed by an Organization member.

  <Expandable title="properties">
    <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>
        )}
  </Expandable>
</ResponseField>

<ResponseField name="request_id" type="string">
  Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we
  may ask for this value to help identify a specific API call when helping you debug an issue.
</ResponseField>

<ResponseField name="status_code" type="number">
  The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
  equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
</ResponseField>

<Panel>
  <RequestExample>
    ```jsx theme={null}
    import { useState } from 'react';
    import { useStytchB2BClient } from '@stytch/react/b2b';

    export const GetConnectedApps = () => {
      const stytch = useStytchB2BClient();
      const [connectedApps, setConnectedApps] = useState([]);

      const getConnectedApps = async () => {
        const response = await stytch.organization.getConnectedApps();
        setConnectedApps(response.connected_apps);
      };

      return (
        <div>
          <button onClick={getConnectedApps}>Get Connected Apps</button>
          <ul>
            {connectedApps.map((app) => (
              <li key={app.connected_app_id}>
                <p>App: {app.name}</p>
                <p>Type: {app.client_type}</p>
              </li>
            ))}
          </ul>
        </div>
      );
    };
    ```
  </RequestExample>

  <ResponseExample>
    ```json theme={null}
    {
      "status_code": 200,
      "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
      "connected_apps": [
        {
          "client_type": "first_party",
          "connected_app_id": "connected-app-test-aeadeabc-a3a3-4796-83d0-b757e3001000",
          "name": "first-party-confidential-app",
          "description": "A first party connected app",
          "logo_url": null
        }
      ]
    }
    ```
  </ResponseExample>
</Panel>
