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

# Get Space Limits

> Get current document count and limits for a space based on the organization's tier



## OpenAPI

````yaml api/openapi.json get /api/spaces/{id}/limits
openapi: 3.1.0
info:
  version: '0.1'
  title: Orchata API
servers:
  - url: https://api.orchata.ai
    description: Orchata API Server
security:
  - ApiKey: []
paths:
  /api/spaces/{id}/limits:
    get:
      tags:
        - Spaces
      summary: Get Space Limits
      description: >-
        Get current document count and limits for a space based on the
        organization's tier
      parameters:
        - schema:
            type: string
            example: space_123
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Successfully retrieved space limits
          content:
            application/json:
              schema:
                type: object
                properties:
                  documents:
                    type: object
                    properties:
                      current:
                        type: number
                      max:
                        type:
                          - number
                          - 'null'
                      remaining:
                        type:
                          - number
                          - 'null'
                    required:
                      - current
                      - max
                      - remaining
                required:
                  - documents
        '404':
          description: Space not found
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |-
            import { Orchata } from '@orchata-ai/sdk';

            const client = new Orchata({ apiKey: 'oai_your_api_key' });

            const { documents } = await client.spaces.getLimits('space_123');
            // { current: 25, max: 50, remaining: 25 }
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Oai-Api-Key

````