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

# Get a Workspace



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /workspaces/{id}
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /workspaces/{id}:
    get:
      tags:
        - workspaces
      summary: Get a Workspace
      parameters:
        - name: id
          in: path
          description: Workspace ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/api.WorkspaceResponse'
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
      security:
        - BearerAuth: []
components:
  schemas:
    api.WorkspaceResponse:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.WorkspaceAttributes'
        id:
          type: string
        type:
          type: string
      description: Workspace response model
    authz.ErrorBody:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/authz.Error'
    api.WorkspaceAttributes:
      type: object
      properties:
        created_at:
          type: string
        description:
          type: string
        is_default:
          type: boolean
        name:
          type: string
        updated_at:
          type: string
      description: Workspace attributes
    authz.Error:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        permission:
          type: string
        title:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````