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

# Search Space Pages

> Find the pages closest in meaning to a question, within your spaces.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/spaces/search
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/search:
    post:
      tags:
        - Spaces
      summary: Search Space Pages
      description: Find the pages closest in meaning to a question, within your spaces.
      operationId: core_api_v1_controllers_spaces_search_space_pages
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SpaceSearchIn'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SpaceSearchOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    SpaceSearchIn:
      properties:
        query:
          description: Natural-language question or topic.
          title: Query
          type: string
        address:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Search only this space or page subtree: '<space>' for a space root,
            '<space>/<path>' for a page (e.g. 'handbook/onboarding/first-week').
          title: Address
        limit:
          default: 10
          description: Maximum results, 1 to 50.
          title: Limit
          type: integer
      required:
        - query
      title: SpaceSearchIn
      type: object
    SpaceSearchOut:
      properties:
        object:
          default: search_result
          title: Object
          type: string
        data:
          items:
            $ref: '#/components/schemas/SpaceSearchHitOut'
          title: Data
          type: array
        has_more:
          title: Has More
          type: boolean
      required:
        - data
        - has_more
      title: SpaceSearchOut
      type: object
    SpaceSearchHitOut:
      properties:
        address:
          title: Address
          type: string
        id:
          title: Id
          type: string
        title:
          title: Title
          type: string
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
        excerpt:
          title: Excerpt
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      required:
        - address
        - id
        - title
        - excerpt
      title: SpaceSearchHitOut
      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.