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

# Initialize app data for the current user



## OpenAPI

````yaml /openapi.yaml get /workspaces/init
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /workspaces/init:
    get:
      tags:
        - Workspace
      summary: Initialize app data for the current user
      operationId: workspaces#init
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workspace_index'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    workspace_index:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/user'
        has_collaborations:
          type: boolean
          description: >-
            True when any collaboration request (in any workspace) is shared
            with the user and not revoked. With no workspaces, the FE shows only
            the Collaborations section.
        workspaces:
          type: array
          items:
            $ref: '#/components/schemas/workspace_list'
        platform_settings:
          $ref: '#/components/schemas/platform_settings'
        feature_flags:
          nullable: true
          type: object
          properties:
            analytics_enabled:
              type: boolean
            areas_enabled:
              type: boolean
            plan_view_enabled:
              type: boolean
            presence_enabled:
              type: boolean
            procurement_enabled:
              type: boolean
            max_active_sessions:
              type: integer
            max_projects:
              type: integer
            max_analytics_boards:
              type: integer
            max_items_per_project:
              type: integer
            max_comment_attachments:
              type: integer
            max_comment_attachment_size_mb:
              type: integer
            manage_settings_enabled:
              type: boolean
        workspace_user:
          nullable: true
          type: object
          properties:
            id:
              type: integer
            position:
              type: integer
            user:
              type: object
              properties:
                id:
                  type: integer
                email:
                  type: string
                first_name:
                  type: string
                last_name:
                  type: string
            role:
              type: object
              properties:
                id:
                  type: integer
                slug:
                  type: string
                name:
                  type: string
                permissions:
                  type: object
                field_access:
                  type: object
                  description: >-
                    The current user's column restrictions (same shape as
                    workspace_role.field_access): { item_fields: { slug =>
                    hidden|view }, baseline_fields: { field => hidden|view } }.
                  properties:
                    item_fields:
                      type: object
                      additionalProperties:
                        type: string
                        enum:
                          - hidden
                          - view
                    baseline_fields:
                      type: object
                      additionalProperties:
                        type: string
                        enum:
                          - hidden
                          - view
      required:
        - user
        - has_collaborations
        - workspaces
        - platform_settings
        - feature_flags
        - workspace_user
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    user:
      type: object
      properties:
        id:
          type: integer
        email:
          type: string
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
        logo_url:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
    workspace_list:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        logo_url:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
          description: >-
            3-letter ISO 4217 code — the default currency of new projects and of
            product items; null = no currency (new workspaces start without
            one).
          example: USD
        status:
          type: string
          enum:
            - active
            - archived
            - creating
      required:
        - id
        - name
        - currency
        - status
    platform_settings:
      type: object
      properties:
        field_types:
          type: array
          items:
            type: string
        field_types_requiring_options:
          type: array
          items:
            type: string
        reserved_workspace_role_slugs:
          type: array
          items:
            type: string
        company_tags:
          type: array
          items:
            type: string
        category_max_children_deep:
          type: integer
          description: Maximum number of category tree levels in total (a root is level 1).
        package_section_max_children_deep:
          type: integer
          description: Maximum number of section tree levels in total (a root is level 1).
        import_kinds:
          type: array
          items:
            type: string
        budget_analysis_types:
          type: array
          items:
            type: string
            enum:
              - category
              - supplier
        project_mapping_settings:
          type: object
          description: Per project mapping `type`, what each `settings` key accepts.
          properties:
            standard_fields:
              type: object
              additionalProperties:
                type: object
                properties:
                  field_types:
                    type: array
                    items:
                      type: string
                    description: Allowed `field_type`s of the referenced column(s).
                  required:
                    type: boolean
                  multiple:
                    type: boolean
                    description: The value is an array of column slugs instead of one slug.
                  max_columns:
                    type: integer
                    description: Only for `multiple` keys.
                required:
                  - field_types
                  - required
                  - multiple
          required:
            - standard_fields
        max_bulk_update:
          type: object
          properties:
            project_item:
              type: integer
            product_item:
              type: integer
          required:
            - project_item
            - product_item
        filter_operators:
          type: object
          properties:
            project_item:
              $ref: '#/components/schemas/filter_operator_context'
            product_item:
              $ref: '#/components/schemas/filter_operator_context'
            cross_project_item:
              $ref: '#/components/schemas/filter_operator_context'
          required:
            - project_item
            - product_item
            - cross_project_item
        group_by:
          type: object
          properties:
            project_item:
              $ref: '#/components/schemas/group_by_context'
            product_item:
              $ref: '#/components/schemas/group_by_context'
            cross_project_item:
              $ref: '#/components/schemas/group_by_context'
          required:
            - project_item
            - product_item
            - cross_project_item
      required:
        - field_types
        - field_types_requiring_options
        - reserved_workspace_role_slugs
        - company_tags
        - category_max_children_deep
        - package_section_max_children_deep
        - import_kinds
        - budget_analysis_types
        - project_mapping_settings
        - max_bulk_update
        - filter_operators
        - group_by
    filter_operator_context:
      type: object
      description: >-
        Maps field type or association slug to the list of supported filter
        operators in a given context.
      properties:
        field_type:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        product_item_association:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        project_item_association:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        project_association:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - field_type
    group_by_context:
      type: object
      description: >-
        Lists supported field types and association slugs that can be used for
        grouping in a given context.
      properties:
        field_types:
          type: array
          items:
            type: string
        product_item_association:
          type: array
          items:
            type: string
        project_item_association:
          type: array
          items:
            type: string
        project_association:
          type: array
          items:
            type: string
      required:
        - field_types
        - product_item_association
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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