> ## 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.

# Count a Workspace's objects

> Counts the objects a Workspace owns, per resource (llms, apps, ...), for the Workspace page. Enterprise Edition.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /workspaces/{id}/objects
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}/objects:
    get:
      tags:
        - workspaces
      summary: Count a Workspace's objects
      description: >-
        Counts the objects a Workspace owns, per resource (llms, apps, ...), for
        the Workspace page. Enterprise Edition.
      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.WorkspaceObjectsResponse'
        '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.WorkspaceObjectsResponse:
      type: object
      properties:
        counts:
          type: object
          additionalProperties:
            type: integer
        workspace_id:
          type: integer
      description: Object counts of a Workspace, keyed by permission resource
    authz.ErrorBody:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/authz.Error'
    authz.Error:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        permission:
          type: string
        title:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````