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

# Search Template Pages

> Search individual pages of the team's templates and themes (hybrid keyword + meaning).

The page-level half of the template flow: find the one slide you need ("our timeline slide"),
LOOK at its thumbnail, then copy just that page into a canvas with
``POST /v1/canvases/{canvas_ref}/import-pages`` (``source`` = ``canvas_id``, ``page_ids`` =
``[page_id]``). To start from a WHOLE template instead, use ``GET /v1/templates``.

Pass ``query``, ``category``, or both. Team-scoped with the same visibility as
``GET /v1/templates``: another team's pages, and canvases you cannot view, never appear.



## OpenAPI

````yaml /openapi/moda-public-api.yaml get /templates/pages
openapi: 3.1.0
info:
  title: Moda Public API
  description: >
    Programmatic access to Moda's canvas design platform. Create designs, export
    assets, manage brand kits, and run AI design tasks.


    ## Versioning


    Pin response shapes with a calendar-dated `Moda-Version` header (e.g.
    `2026-05-01`). **The pin is global** — it applies to every endpoint in the
    request, not just the one you adopted it for, so raising it to use a new
    endpoint also moves your other responses to that version's shapes.


    ### Migrating `2026-04-12` → `2026-05-01`


    - **Tasks** move from the flat `JobResponse` (`job_id`, `canvas_url`,
    `can_export`) to the canonical `Task` envelope. The export artifact is now
    under `result.export` as `{url, format, page_count}`; update any code that
    read the export URL from the old top-level fields.

    - **Multi-page PNG/JPEG exports are delivered as a single `.zip`** of
    per-page files (`page-1.png`, …), so `result.export.format` is `zip`. For
    one bundled document instead, request `format=pdf` or `pptx`; for a single
    image, pass `page_number`.
  version: 1.0.0
  x-moda-api-version: '2026-05-01'
servers:
  - url: https://api.moda.app/v1
    description: Production
security: []
tags:
  - name: canvases
    description: List, search, read, export, and share canvases
  - name: tasks
    description: Start and monitor AI design tasks
  - name: organizations
    description: List organizations and teams
  - name: credits
    description: Check credit balance and usage
  - name: brand-kits
    description: Manage brand kits
  - name: remix
    description: Duplicate and edit canvases
  - name: share-links
    description: Resolve share URLs to canvas identifiers
  - name: uploads
    description: Upload files for use as attachments
  - name: voices
    description: >-
      Managed voices: capabilities, the voice catalog, favorites and
      pronunciation dictionaries
  - name: usage
    description: Aggregate API usage stats for the caller's team
  - name: feedback
    description: Submit product feedback from Voyager
  - name: voyager
    description: 'Voyager desktop sign-in: OAuth config, device registration and revocation'
  - name: embed
    description: Signed iframe embed sessions
  - name: web
    description: 'Metered web research: search and page reading'
  - name: websites
    description: >-
      Create, update, publish, screenshot, and manage hosted multi-page static
      sites
  - name: drive
    description: >-
      Organize the workspace: folders, the folder tree, and item
      move/rename/visibility/delete for folders, canvases, and files
paths:
  /templates/pages:
    get:
      tags:
        - canvas-actions
      summary: Search Template Pages
      description: >-
        Search individual pages of the team's templates and themes (hybrid
        keyword + meaning).


        The page-level half of the template flow: find the one slide you need
        ("our timeline slide"),

        LOOK at its thumbnail, then copy just that page into a canvas with

        ``POST /v1/canvases/{canvas_ref}/import-pages`` (``source`` =
        ``canvas_id``, ``page_ids`` =

        ``[page_id]``). To start from a WHOLE template instead, use ``GET
        /v1/templates``.


        Pass ``query``, ``category``, or both. Team-scoped with the same
        visibility as

        ``GET /v1/templates``: another team's pages, and canvases you cannot
        view, never appear.
      operationId: searchTemplatePages
      parameters:
        - name: query
          in: query
          required: false
          schema:
            type: string
            maxLength: 500
            description: >-
              What the page is, in words (``timeline``, ``meet the team``). Omit
              to browse by ``category``.
            default: ''
            title: Query
          description: >-
            What the page is, in words (``timeline``, ``meet the team``). Omit
            to browse by ``category``.
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/LibraryPageCategory'
              - type: 'null'
            description: Only pages in this category.
            title: Category
          description: Only pages in this category.
        - name: kind
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/LibraryTemplateType'
              - type: 'null'
            description: >-
              Only pages of templates (``template``) or of themes (``theme``).
              Default: both.
            title: Kind
          description: >-
            Only pages of templates (``template``) or of themes (``theme``).
            Default: both.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50
            minimum: 1
            description: Max pages. Defaults to 10, caps at 50.
            default: 10
            title: Limit
          description: Max pages. Defaults to 10, caps at 50.
        - $ref: '#/components/parameters/ModaVersion'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchTemplatePagesResponse'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: Insufficient credits for a metered operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Permission denied for this scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Conflict (idempotency / resource state).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - API Key: []
components:
  schemas:
    LibraryPageCategory:
      type: string
      enum:
        - title
        - agenda
        - problem
        - solution
        - timeline
        - use_case
        - team
        - metrics
        - quote
        - closing
        - other
      title: LibraryPageCategory
    LibraryTemplateType:
      type: string
      enum:
        - template
        - theme
      title: LibraryTemplateType
      description: The ``canvases.template_type`` values whose pages the library indexes.
    SearchTemplatePagesResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/TemplatePageItem'
          type: array
          title: Data
          description: Matching pages, best match first.
        returned:
          type: integer
          title: Returned
          description: Number of pages in ``data``.
        keyword_only:
          type: boolean
          title: Keyword Only
          description: >-
            ``true`` when meaning-based matching was unavailable for this
            request and only literal keywords were matched — an empty or thin
            result is then NOT proof the page doesn't exist; retry.
      type: object
      required:
        - data
        - returned
        - keyword_only
      title: SearchTemplatePagesResponse
      description: >-
        Best-first page hits (not paginated — narrow the query or category
        instead).
    ErrorEnvelope:
      properties:
        type:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          title: Code
          description: >-
            Stable machine string keyed to doc_url. Never changes once
            published.
        message:
          type: string
          title: Message
          description: >-
            Human-readable message, for developers. Not localized, not
            user-facing.
        doc_url:
          type: string
          title: Doc Url
          description: Permalink to the docs page for this code.
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: Correlator for logs/Sentry/audit.
        causes:
          anyOf:
            - items:
                $ref: '#/components/schemas/ErrorEnvelope'
              type: array
            - type: 'null'
          title: Causes
          description: Aggregated upstream failures (e.g. per-page export errors).
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: >-
            Code-specific detail payload (e.g. validation field list). Callers
            should pass ``None`` rather than ``{}`` to omit the key from the
            response.
        retry_after_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After Ms
          description: Hint for rate-limited or transient errors.
        retryable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Retryable
          description: >-
            Explicit retryability for this code, from the error-code registry:
            ``false`` means retrying the same request cannot succeed (fix the
            input / resource first); ``true`` means the condition is transient
            and a retry (with backoff / after the blocker clears) can succeed.
            For a code whose retryability is context-dependent (the registry
            declares none), the raising site sets it per response when it knows
            the cause (e.g. ``source_url_unreachable``: a timeout is retryable,
            a 404 is not) and omits it otherwise — do not derive it from
            ``type`` or the HTTP status when this field is present.
      type: object
      required:
        - type
        - code
        - message
        - doc_url
      title: ErrorEnvelope
      description: >-
        Canonical error payload, nested under the top-level ``{"error": ...}``
        key.
    TemplatePageItem:
      properties:
        canvas_id:
          type: string
          title: Canvas Id
          description: >-
            Wire id (``cvs_...``) of the template or theme canvas the page
            belongs to — the ``source`` of ``POST
            /v1/canvases/{canvas_ref}/import-pages``.
        page_id:
          type: string
          title: Page Id
          description: >-
            The page's id inside that canvas — pass it in ``page_ids`` to import
            it.
        page_index:
          type: integer
          title: Page Index
          description: Zero-based position of the page in its canvas.
        title:
          type: string
          title: Title
          description: The page's authored name, else ``Slide N`` / ``Page N``.
        canvas_name:
          type: string
          title: Canvas Name
          description: Name of the template or theme the page belongs to.
        kind:
          $ref: '#/components/schemas/LibraryTemplateType'
          description: '``template`` (a starting-point deck) or ``theme``.'
        category:
          anyOf:
            - $ref: '#/components/schemas/LibraryPageCategory'
            - type: 'null'
          description: >-
            What the page is for (``timeline``, ``team``, …); ``null`` until
            classified.
        subcategory:
          anyOf:
            - type: string
            - type: 'null'
          title: Subcategory
          description: Author-set refinement of the category, when set.
        excerpt:
          type: string
          title: Excerpt
          description: The start of the page's text, to tell similar pages apart.
        match_type:
          anyOf:
            - type: string
              enum:
                - keyword
                - semantic
                - hybrid
            - type: 'null'
          title: Match Type
          description: >-
            Which search arm matched; ``null`` when browsing by category without
            a query.
        thumbnail_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Thumbnail Url
          description: >-
            Signed page thumbnail URL (bounded lifetime) — download it to LOOK
            at the page before choosing; ``null`` when the page has not been
            rendered yet. Use-and-discard: never persist this URL.
        thumbnail_unavailable:
          type: boolean
          title: Thumbnail Unavailable
          description: >-
            ``true`` when a thumbnail EXISTS but could not be signed right now
            (transient) — retry.
          default: false
      type: object
      required:
        - canvas_id
        - page_id
        - page_index
        - title
        - canvas_name
        - kind
        - excerpt
      title: TemplatePageItem
      description: One page of a team template or theme — from the library page index.
    ErrorType:
      type: string
      enum:
        - invalid_request
        - authentication
        - permission
        - not_found
        - conflict
        - rate_limited
        - idempotency_conflict
        - unprocessable
        - upstream_error
        - internal_error
      title: ErrorType
      description: Closed set of high-level categories SDKs branch on.
  parameters:
    ModaVersion:
      name: Moda-Version
      in: header
      required: false
      description: >-
        Calendar-dated API version pin. New integrations should pin `2026-05-01`
        to opt into the newest response shapes. For back-compat the server also
        accepts requests with no header and resolves them to the current default
        (today: `2026-04-12`); that default advances on each [sunset
        date](/api-reference/versioning). Any unsupported value returns 400
        `unsupported_version`.
      example: '2026-05-01'
      schema:
        type: string
        enum:
          - '2026-04-12'
          - '2026-05-01'
        default: '2026-05-01'
        example: '2026-05-01'
  securitySchemes:
    API Key:
      type: http
      description: API key from Settings > Developer > REST API
      scheme: bearer

````