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

# Get Integration Status

> Get the status of all integrations for a user

Get the current status and configuration of all integrations for a specific user.

## URL Parameters

<ParamField path="externalUserIdentifier" type="string" required>
  Unique identifier for the user in your system
</ParamField>

## Response

<ResponseField name="integrations" type="array">
  List of integration statuses

  ```ts theme={null}
  {
    type: string
    enabled: boolean
    connected: boolean
    lastSynced: string
    // Additional fields vary by integration type
  }[]
  ```
</ResponseField>

### Integration-Specific Fields

#### Google Analytics

<ResponseField name="propertyId" type="string">
  Selected Google Analytics property ID
</ResponseField>

<ResponseField name="syncSchedule" type="string">
  Data sync schedule
</ResponseField>

#### Notion

<ResponseField name="workspaceName" type="string">
  Connected Notion workspace name
</ResponseField>

<ResponseField name="syncSchedule" type="string">
  Data sync schedule
</ResponseField>

#### Slack

<ResponseField name="teamId" type="string">
  Connected Slack team ID
</ResponseField>

<ResponseField name="syncSchedule" type="string">
  Data sync schedule
</ResponseField>

#### Zoho

<ResponseField name="organizationId" type="string">
  Connected Zoho organization ID
</ResponseField>

<ResponseField name="dc" type="string">
  Zoho data center
</ResponseField>

<ResponseField name="enabledModules" type="object">
  Enabled Zoho modules

  ```ts theme={null}
  {
    crm: boolean
    books: boolean
    projects: boolean
  }
  ```
</ResponseField>

<ResponseField name="syncSchedule" type="string">
  Data sync schedule
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://suada.ai/api/public/integrations/status/user-123 \
    -H "Authorization: Bearer sk-suada-your-api-key"
  ```

  ```typescript TypeScript theme={null}
  import { Suada } from '@suada/node';

  const suada = new Suada({
    apiKey: 'your-api-key'
  });

  const status = await suada.getIntegrationStatus('user-123');
  ```

  ```python Python theme={null}
  from suada import Suada, SuadaConfig

  suada = Suada(
      config=SuadaConfig(
          api_key="your-api-key"
      )
  )

  status = suada.get_integration_status('user-123')
  ```
</CodeGroup>

<ResponseExample>
  ```json theme={null}
  [
    {
      "type": "google-analytics",
      "enabled": true,
      "connected": true,
      "lastSynced": "2024-02-20T15:30:00Z",
      "propertyId": "123456789",
      "syncSchedule": "0 */6 * * *"
    },
    {
      "type": "notion",
      "enabled": true,
      "connected": true,
      "lastSynced": "2024-02-20T15:00:00Z",
      "workspaceName": "My Workspace",
      "syncSchedule": "0 */12 * * *"
    },
    {
      "type": "zoho",
      "enabled": true,
      "connected": true,
      "lastSynced": "2024-02-20T14:45:00Z",
      "organizationId": "org-123",
      "dc": "com",
      "enabledModules": {
        "crm": true,
        "books": true,
        "projects": true
      },
      "syncSchedule": "0 */4 * * *"
    }
  ]
  ```
</ResponseExample>

## Error Codes

<ResponseField name="401" type="object">
  Authentication error

  ```json theme={null}
  {
    "error": "Invalid or expired API key"
  }
  ```
</ResponseField>

<ResponseField name="404" type="object">
  User not found

  ```json theme={null}
  {
    "error": "User not found"
  }
  ```
</ResponseField>

<ResponseField name="500" type="object">
  Server error

  ```json theme={null}
  {
    "error": "Failed to get integration status"
  }
  ```
</ResponseField>

## Notes

* The response includes all available integrations, whether connected or not
* The `lastSynced` timestamp indicates when data was last synchronized
* The `syncSchedule` is in cron format
* Each integration type may have additional fields specific to its configuration
* The `enabled` field indicates whether the integration is currently active
* The `connected` field indicates whether the OAuth connection is valid
