Skip to main content
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;
};
{
  "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"
      ]
    }
  ]
}
organization.getConnectedApp wraps the Get Connected App API endpoint. The organization_id will be automatically inferred from the logged-in session. This method retrieves information about the specified Connected App as well as a list of Members in the who have completed an authorization flow with the Connected App.

Parameters

connected_app_id
string
required
The ID of the Connected App.

Response

connected_app_id
string
The ID of the Connected App.
name
string
The name of the Connected App.
description
string
A description of the Connected App.
client_type
string
The type of Connected App. Supported values are first_party, first_party_public, third_party, and third_party_public.
logo_url
string
The logo URL of the Connected App, if any.
active_members
array[objects]
Details about Members who has installed a Connected App.