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

# Read Space Page

> Read a page whole, as an outline, one section, or a line range. Returns the content_hash edits need.



## OpenAPI

````yaml /openapi-v1.json get /api/v1/spaces/pages
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/spaces/pages:
    get:
      tags:
        - Spaces
      summary: Read Space Page
      description: >-
        Read a page whole, as an outline, one section, or a line range. Returns
        the content_hash edits need.
      operationId: core_api_v1_controllers_spaces_read_space_page
      parameters:
        - in: query
          name: address
          schema:
            title: Address
            type: string
          required: true
        - in: query
          name: outline
          schema:
            default: false
            title: Outline
            type: boolean
          required: false
        - in: query
          name: section
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Section
          required: false
        - in: query
          name: start_line
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Start Line
          required: false
        - in: query
          name: end_line
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: End Line
          required: false
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpacePageOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    SpacePageOut:
      properties:
        object:
          default: space_page
          title: Object
          type: string
        id:
          title: Id
          type: string
        address:
          title: Address
          type: string
        space:
          title: Space
          type: string
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
        title:
          title: Title
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        content_hash:
          title: Content Hash
          type: string
        total_lines:
          title: Total Lines
          type: integer
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        start_line:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Line
        end_line:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Line
        truncated:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Truncated
        next_start_line:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Start Line
        hint:
          anyOf:
            - type: string
            - type: 'null'
          title: Hint
        outline:
          anyOf:
            - items:
                $ref: '#/components/schemas/HeadingOut'
              type: array
            - type: 'null'
          title: Outline
        section:
          anyOf:
            - $ref: '#/components/schemas/HeadingOut'
            - type: 'null'
      required:
        - id
        - address
        - space
        - title
        - content_hash
        - total_lines
      title: SpacePageOut
      type: object
    HeadingOut:
      properties:
        level:
          title: Level
          type: integer
        text:
          title: Text
          type: string
        line:
          title: Line
          type: integer
        end_line:
          title: End Line
          type: integer
      required:
        - level
        - text
        - line
        - end_line
      title: HeadingOut
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.