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

# List the sources you can import from

> Every source, whether it's set up here, and whether you've connected it.



## OpenAPI

````yaml get /api/documents/sources
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/documents/sources:
    get:
      tags:
        - Document imports
      summary: List the sources you can import from
      description: Every source, whether it's set up here, and whether you've connected it.
      operationId: list_sources_api_documents_sources_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api__models__document_source_models__SourcesResponse
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    api__models__document_source_models__SourcesResponse:
      properties:
        sources:
          items:
            $ref: '#/components/schemas/SourceStatus'
          type: array
          title: Sources
        can_manage_apps:
          type: boolean
          title: Can Manage Apps
          description: True for document admins, who register each provider's app.
      type: object
      required:
        - sources
        - can_manage_apps
      title: SourcesResponse
      description: Every source and whether the caller may manage app registrations.
    SourceStatus:
      properties:
        key:
          type: string
          enum:
            - notion
            - sharepoint
            - google_drive
            - onedrive
            - confluence
          title: Key
          description: The source's key.
        label:
          type: string
          title: Label
          description: The source's name.
        description:
          type: string
          title: Description
          description: What can be imported from it.
        provider:
          type: string
          enum:
            - google
            - microsoft
            - atlassian
            - notion
          title: Provider
          description: Where you sign in for it.
        provider_label:
          type: string
          title: Provider Label
          description: The sign-in's name, such as Microsoft.
        configured:
          type: boolean
          title: Configured
          description: Whether a document admin has set the source up here.
        connected:
          type: boolean
          title: Connected
          description: Whether you have signed in.
        account_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Label
          description: The account you signed in with.
        needs_reconnect:
          type: boolean
          title: Needs Reconnect
          description: True when the provider no longer accepts your sign-in.
          default: false
        shares_sign_in_with:
          items:
            type: string
            enum:
              - notion
              - sharepoint
              - google_drive
              - onedrive
              - confluence
          type: array
          title: Shares Sign In With
          description: Other sources the same sign-in opens (OneDrive and SharePoint).
      type: object
      required:
        - key
        - label
        - description
        - provider
        - provider_label
        - configured
        - connected
      title: SourceStatus
      description: One source, as the caller sees it.
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.