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

# List pages

> Every page of the workspace, newest first, or of one site when `projectId` is given.



## OpenAPI

````yaml /openapi.json get /v1/pages
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/pages:
    get:
      tags:
        - Pages
      summary: List pages
      description: >-
        Every page of the workspace, newest first, or of one site when
        `projectId` is given.
      operationId: PublicPagesController_list_v1
      parameters:
        - name: limit
          required: false
          in: query
          description: How many items to return (1–100).
          schema:
            minimum: 1
            maximum: 100
            default: 50
            type: number
        - name: after
          required: false
          in: query
          description: >-
            Opaque cursor: pass the `nextCursor` of a previous page to get the
            next one.
          schema:
            type: string
        - name: before
          required: false
          in: query
          description: Opaque cursor for paging backwards (items before it).
          schema:
            type: string
        - name: projectId
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedPagesDto'
      security:
        - api-key: []
components:
  schemas:
    PaginatedPagesDto:
      type: object
      properties:
        data:
          description: The items of this page.
          type: array
          items:
            $ref: '#/components/schemas/PublicPageDto'
        hasMore:
          type: boolean
          description: True when more items exist after this page.
        nextCursor:
          type: string
          nullable: true
          description: >-
            Opaque cursor to pass as `after` for the next page; null on the last
            page.
      required:
        - data
        - hasMore
        - nextCursor
    PublicPageDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - agent
            - document
          description: '`agent` or `document` (D-47).'
        path:
          type: string
          description: The address under the site host. `/` is home.
        status:
          type: string
          description: '`draft` or `published`.'
        agentId:
          type: string
          description: The brain that answers here. Absent for a document page.
        projectId:
          type: string
          description: The site (project) the page lives in.
        defaultLocale:
          type: string
          enum:
            - es
            - en
        editorial:
          description: The owner-written framing (agent page). Empty for a document.
          allOf:
            - $ref: '#/components/schemas/PublicPageEditorialDto'
        seo:
          $ref: '#/components/schemas/PublicPageSeoDto'
        sitemap:
          $ref: '#/components/schemas/PublicPageSitemapDto'
        body:
          description: The markdown of a document page. Empty for an agent page.
          allOf:
            - $ref: '#/components/schemas/PublicLocalizedTextDto'
        publishedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - kind
        - path
        - status
        - defaultLocale
        - editorial
        - seo
        - sitemap
        - body
        - createdAt
        - updatedAt
    PublicPageEditorialDto:
      type: object
      properties:
        badge:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
        title:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
        titleAccent:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
        description:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
      required:
        - badge
        - title
        - titleAccent
        - description
    PublicPageSeoDto:
      type: object
      properties:
        title:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
        description:
          $ref: '#/components/schemas/PublicLocalizedTextDto'
      required:
        - title
        - description
    PublicPageSitemapDto:
      type: object
      properties:
        priority:
          type: number
          minimum: 0
          maximum: 1
        changefreq:
          type: string
          enum:
            - always
            - hourly
            - daily
            - weekly
            - monthly
            - yearly
            - never
        sitemapExclude:
          type: boolean
          description: Keep the page OUT of the sitemap.
    PublicLocalizedTextDto:
      type: object
      properties:
        es:
          type: string
        en:
          type: string
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````