> ## 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 decision workspaces

> List the workspaces you can see.

Instance admins see every workspace. Everyone else sees only the
workspaces they hold a membership in — a workspace you have no
access to is invisible, not merely unlisted.

**Required roles**: `nx1_decisions_user` or `nx1_decisions_admin`



## OpenAPI

````yaml get /api/decisions/workspaces
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/decisions/workspaces:
    get:
      tags:
        - Decisions
      summary: List decision workspaces
      description: |-
        List the workspaces you can see.

        Instance admins see every workspace. Everyone else sees only the
        workspaces they hold a membership in — a workspace you have no
        access to is invisible, not merely unlisted.

        **Required roles**: `nx1_decisions_user` or `nx1_decisions_admin`
      operationId: list_workspaces_api_decisions_workspaces_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceListResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    WorkspaceListResponse:
      properties:
        workspaces:
          items:
            $ref: '#/components/schemas/WorkspaceResponse'
          type: array
          title: Workspaces
      type: object
      required:
        - workspaces
      title: WorkspaceListResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
    WorkspaceResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        retain_inputs:
          type: boolean
          title: Retain Inputs
          default: false
        created_by:
          type: string
          title: Created By
        created_at:
          type: string
          format: date-time
          title: Created At
        archived_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Archived At
        your_roles:
          items:
            type: string
          type: array
          title: Your Roles
          description: The calling user's roles in this workspace.
      type: object
      required:
        - id
        - name
        - created_by
        - created_at
      title: WorkspaceResponse
  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

````