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

# Workspace Settings

> Retrieves settings for the authenticated user's workspace



## OpenAPI

````yaml GET /api/settings
openapi: 3.1.0
info:
  title: Whilst Slack Bot API
  version: 0.1.0
  description: >-
    Internal endpoints backing the Whilst Slack bot. Includes Slack event
    intake, OAuth install flow, health checks, and admin operations.
servers:
  - url: https://api.staging.whilst.app
    description: Staging
  - url: https://api.whilst.app
    description: Production
security: []
paths:
  /api/settings:
    get:
      tags:
        - Settings
      summary: Get workspace settings
      description: Retrieves settings for the authenticated user's workspace
      operationId: getSettings
      responses:
        '200':
          description: Workspace settings retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceSettings'
        '401':
          description: Unauthorized (no session)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Workspace not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - session_cookie: []
components:
  schemas:
    WorkspaceSettings:
      type: object
      required:
        - id
        - name
        - slug
        - status
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          description: Workspace display name
        slug:
          type: string
          description: Unique workspace identifier (WorkOS org ID)
        status:
          type: string
          enum:
            - active
            - suspended
            - cancelled
        metadata:
          type: object
          description: Additional workspace metadata
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: Machine-readable error code
        details:
          type: object
          description: Additional error context
  securitySchemes:
    session_cookie:
      type: apiKey
      in: cookie
      name: whilst_session
      description: JWT session token for authenticated users

````