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

# Get workspace

> Returns the current workspace and the API key used to authenticate.



## OpenAPI

````yaml /api-reference/openapi.json get /workspace
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /workspace:
    get:
      tags:
        - Workspace
      summary: Get workspace
      description: Returns the current workspace and the API key used to authenticate.
      operationId: get_workspace_ca_api_v0_workspace_get
      responses:
        '200':
          description: Workspace details
          content:
            application/json:
              example:
                id: customer_01EXAMPLE
                name: Acme
                status: active
                created_at: '2026-05-22T10:00:00Z'
                api_key:
                  id: key_01EXAMPLE
                  prefix: lk_live_3Qa1
                  scopes:
                    - workspace:read
                    - sessions:read
                    - sessions:write
        '401':
          description: Missing or invalid credentials
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Invalid or revoked API key
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````