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

# Get page LLM context (JSON format)



## OpenAPI

````yaml /api-reference/openapi.json get /v2/pages/{id}/llms.json
openapi: 3.1.0
info:
  title: Base39 API
  description: Base39 API
  version: 1.0.0
  contact:
    name: Base39 Team
    url: https://base39.com.br
    email: suporte@base39.com.br
  termsOfService: https://base39.com.br/termos
  license:
    name: Proprietary
    url: https://base39.com.br/termos
servers:
  - url: http://localhost:3000
    description: Local
  - url: https://api.dev.base39.cloud
    description: Development
  - url: https://api.base39.com.br
    description: Production
security:
  - OAuth2: []
tags:
  - name: pages
    description: Profiles and reports pages
  - name: pipelines
    description: Pipeline boards (kanban) of pages
  - name: blocks
    description: Blocks operations
  - name: search
    description: Search across content
  - name: targets
    description: Lookup targets via datasets
  - name: CognitoTriggers
    description: Cognito triggers
paths:
  /v2/pages/{id}/llms.json:
    get:
      tags:
        - pages
      summary: Get page LLM context (JSON format)
      operationId: page_get_llm_context_json
      parameters:
        - name: id
          required: true
          in: path
          description: Page ID
          schema:
            type: string
      responses:
        '200':
          description: Page context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LlmPageContext'
        '404':
          description: Page not found
components:
  schemas:
    LlmPageContext:
      type: object
      properties:
        title:
          type: string
        agent:
          type: string
        summary:
          type: string
        links:
          $ref: '#/components/schemas/LlmPageLinks'
        properties:
          type: array
          items:
            $ref: '#/components/schemas/LlmProperty'
        blocks:
          type: array
          items:
            $ref: '#/components/schemas/LlmBlock'
        files:
          type: array
          items:
            $ref: '#/components/schemas/LlmReportFile'
        queries:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/LlmQueryMeta'
        targets:
          type: array
          items:
            $ref: '#/components/schemas/LlmReportTarget'
        children:
          type: array
          items:
            $ref: '#/components/schemas/LlmReportTarget'
        permissions:
          $ref: '#/components/schemas/LlmReportPermissions'
      required:
        - title
        - links
        - properties
        - blocks
        - files
        - queries
    LlmPageLinks:
      type: object
      properties:
        page:
          type: string
      required:
        - page
    LlmProperty:
      type: object
      properties:
        heading:
          type: string
        description:
          type: string
        text:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/LlmPropertyItem'
      required:
        - heading
    LlmBlock:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        markdown:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - evaluating
            - writing
            - error
            - done
            - insufficient_data
            - canceled
        agent:
          $ref: '#/components/schemas/LlmBlockAgent'
        query:
          type: object
          properties:
            deps:
              type: array
              items:
                $ref: '#/components/schemas/LlmBlockQueryDep'
      required:
        - id
        - type
        - markdown
    LlmReportFile:
      type: object
      properties:
        file_id:
          type: string
        name:
          type: string
        summary:
          type: string
        insightsFacts:
          type: array
          items:
            $ref: '#/components/schemas/InsightFact'
        classification:
          type: object
          additionalProperties: true
      required:
        - file_id
        - name
    LlmQueryMeta:
      type: object
      properties:
        dataset:
          $ref: '#/components/schemas/LlmQueryDataset'
        createdAt:
          type: string
          format: date-time
        duration:
          type: number
        cost:
          type: number
        insightsFacts:
          type: array
          items:
            $ref: '#/components/schemas/InsightFact'
    LlmReportTarget:
      type: object
      properties:
        page_id:
          type: string
        type:
          type: string
        name:
          type: string
        document:
          type: string
        summary:
          type: string
        icon:
          $ref: '#/components/schemas/IconOutput'
        blocks:
          type: array
          items:
            $ref: '#/components/schemas/LlmBlock'
        files:
          type: array
          items:
            $ref: '#/components/schemas/LlmReportFile'
        queries:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/LlmQueryMeta'
      required:
        - page_id
        - type
        - blocks
        - files
        - queries
    LlmReportPermissions:
      type: object
      properties:
        allow:
          type: array
          items:
            type: string
        deny:
          type: array
          items:
            type: string
        ask:
          type: array
          items:
            type: string
      required:
        - allow
        - deny
        - ask
    LlmPropertyItem:
      type: object
      properties:
        label:
          type: string
        href:
          type: string
        summary:
          type: string
        meta:
          type: array
          items:
            type: string
        classification:
          type: string
        insightsFacts:
          type: array
          items:
            $ref: '#/components/schemas/InsightFact'
        properties:
          type: array
          items:
            $ref: '#/components/schemas/LlmProperty'
        blocks:
          type: array
          items:
            $ref: '#/components/schemas/LlmBlock'
      required:
        - label
    LlmBlockAgent:
      type: object
      properties:
        agentRef:
          type: string
        agentId:
          type: string
        agentBlockId:
          type: string
        status:
          type: string
    LlmBlockQueryDep:
      type: object
      properties:
        id:
          type: string
        dataset:
          $ref: '#/components/schemas/LlmQueryDataset'
      required:
        - id
    InsightFact:
      type: object
      properties:
        id:
          type: string
        source_id:
          type: string
        entity_indexes:
          type: array
          items:
            type: number
        statement:
          type: string
        references:
          type: array
          items:
            $ref: '#/components/schemas/FactReference'
        method:
          type: string
          enum:
            - verbatim
            - calculated
            - inferred
        confidence:
          type: number
        entities:
          type: array
          items:
            $ref: '#/components/schemas/FactEntity'
      required:
        - id
        - entity_indexes
        - statement
        - references
        - method
        - confidence
    LlmQueryDataset:
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
      required:
        - name
        - slug
    IconOutput:
      type: object
      properties:
        type:
          type: string
          enum:
            - emoji
            - external
            - file_upload
            - domain
            - file
            - lucide
            - dicebear
            - brand
        emoji:
          type: string
          example: page_icon
        external:
          $ref: '#/components/schemas/ExternalFileOutput'
        file_upload:
          $ref: '#/components/schemas/FileUploadOutput'
        domain:
          type: string
          example: acme.com
        file:
          $ref: '#/components/schemas/InternalFileOutput'
        lucide:
          type: string
          example: file-text
        brand:
          type: string
          example: github
          description: Simple Icons brand slug (logo and color resolved automatically)
        dicebear:
          $ref: '#/components/schemas/DicebearIconPayloadOutput'
        background:
          type: string
          enum:
            - blue
            - red
            - pattern-red
            - pattern-blue
            - pattern-red-1
            - pattern-red-2
            - pattern-red-3
            - pattern-blue-1
            - pattern-blue-2
            - pattern-blue-3
        empty:
          type: boolean
          example: true
        updatedBy:
          type: string
          example: dataset:empresas
    FactReference:
      type: object
      properties:
        page_number:
          type: number
      required:
        - page_number
    FactEntity:
      type: object
      properties:
        type:
          type: string
          enum:
            - company
            - person
        name:
          type: string
        document:
          type: string
      required:
        - type
        - name
    ExternalFileOutput:
      type: object
      properties:
        url:
          type: string
          example: https://example.com/image.jpg
      required:
        - url
    FileUploadOutput:
      type: object
      properties:
        id:
          type: string
          example: fu_abc123
      required:
        - id
    InternalFileOutput:
      type: object
      properties:
        url:
          type: string
          example: https://s3.amazonaws.com/...
        expiryTime:
          type: string
          example: '2024-01-15T10:30:00.000Z'
      required:
        - url
        - expiryTime
    DicebearIconPayloadOutput:
      type: object
      properties:
        style:
          type: string
          enum:
            - notionists-neutral
        seed:
          type: string
          example: 0256de50-f90c-49a8-81f0-3988b2b89d8d
        backgroundColor:
          type: string
          example: b6e3f4,b6e3f4
          description: Hex color(s), comma-separated for gradients
        options:
          $ref: '#/components/schemas/DicebearIconOptionsOutput'
      required:
        - style
        - seed
        - backgroundColor
    DicebearIconOptionsOutput:
      type: object
      properties:
        brows:
          type: string
        eyes:
          type: string
        glasses:
          type: string
        lips:
          type: string
        nose:
          type: string
        flip:
          type: boolean
        rotate:
          type: number
        scale:
          type: number
        radius:
          type: number
        size:
          type: number
        backgroundType:
          type: string
          enum:
            - solid
            - gradientLinear
        backgroundRotation:
          type: array
          items:
            type: number
        translateX:
          type: number
        translateY:
          type: number
        clip:
          type: boolean
        randomizeIds:
          type: boolean
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.local.base39.cloud/oauth2/authorize
          tokenUrl: https://id.local.base39.cloud/oauth2/token
          scopes:
            profile: Read user profile
            email: Read user email
            openid: OpenID authentication
      description: OAuth2 Authorization Code flow

````