Skip to content

POST /v1/auth/organizations/{orgId}/sso/refresh

Refreshes the selected organization’s SSO connection and returns its current connection state, configuration version and policy synchronization status. This operation takes no request body.

photon.auth.refreshOrganizationSsoConnection(input: RefreshOrganizationSsoConnectionInput, options?: RequestOptions): Promise<RefreshOrganizationSsoConnectionOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.auth.refreshOrganizationSsoConnection({
  path: {
    orgId: "orgId",
  },
});
{
  "connectionChangedAt": null,
  "connectionGeneration": "string",
  "connectionState": "not_configured",
  "connectionType": "string",
  "desiredSsoEnforced": true,
  "domains": [
    {
      "domain": "string",
      "state": "verified"
    }
  ],
  "organizationId": "string",
  "policySyncStatus": "synced",
  "providerAvailable": true,
  "ssoEnforced": true,
  "ssoJitEnabled": true,
  "version": "string"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

orgIdstringrequired

Returns

200 Current connection and independent local policy state. OrganizationSsoConfiguration

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

connectionChangedAtstring (date-time) | nullrequired
connectionGenerationstringrequired
connectionStateOrganizationSsoConfigurationConnectionStaterequired
connectionTypestring
desiredSsoEnforcedbooleanrequired
domainsarray of OrganizationSsoDomain
organizationIdstringrequired
policySyncStatusOrganizationSsoConfigurationPolicySyncStatusrequired
providerAvailableboolean
ssoEnforcedbooleanrequired
ssoJitEnabledbooleanrequired
versionstringrequired