Get organization connection status
Get organization connection status: getOrganizationConnectionStatus in the TypeScript, Python, Rust and Go clients.
GET /v1/auth/organizations/{orgId}/connection-status
Requires current human organization membership. Synchronization status does not attest SSO configuration or completed authorization.
photon.auth.getOrganizationConnectionStatus(input: GetOrganizationConnectionStatusInput, options?: RequestOptions): Promise<GetOrganizationConnectionStatusOutput>photon.auth.get_organization_connection_status(input: GetOrganizationConnectionStatusInput, *, options: RequestOptions | None = None) -> models.OrganizationConnectionStatusclient.get_organization_connection_status(org_id: String).await -> Result<ResponseValue<types::OrganizationConnectionStatus>, Error<GetOrganizationConnectionStatusError>>client.Auth.GetOrganizationConnectionStatus(ctx context.Context, params *GetOrganizationConnectionStatusParams, opts ...RequestOption) (*OrganizationConnectionStatus, error)import { Photon } from "@photon-ai/api";
const photon = new Photon({
headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.auth.getOrganizationConnectionStatus({
path: {
orgId: "orgId",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetOrganizationConnectionStatusInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.auth.get_organization_connection_status(
GetOrganizationConnectionStatusInput.model_validate({
"path": {
"orgId": "orgId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_organization_connection_status("orgId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Auth.GetOrganizationConnectionStatus(ctx, &photonapi.GetOrganizationConnectionStatusParams{
OrgID: "orgId",
})
if err != nil {
return err
}
_ = result{
"membership": {
"errorCode": null,
"retryAt": null,
"status": "pending"
},
"organization": {
"errorCode": null,
"status": "pending"
},
"organizationId": "string",
"synchronized": true
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 Organization mapping and current member synchronization. OrganizationConnectionStatus
Headers: Photon-Version. The raw response carries these headers; see Raw responses.