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

# Create Wiki Page

> Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.

Titles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.



## OpenAPI

````yaml /openapi.json post /api/v1/wiki/pages
openapi: 3.1.0
info:
  title: OmniCommerce API
  version: 1.0.0
  license:
    name: Proprietary
    url: https://omnicommerce.sg/terms
  description: >-
    OmniCommerce API surface for agents and developer integrations. Includes
    public endpoints (merchant discovery, product search, compare, catalog, ACO
    retrieval) and authenticated endpoints (product management via API key
    Bearer tokens).
servers:
  - url: https://omnicommerce.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: ads
    description: ads
    x-group: Ads
  - name: agentic-checkout
    description: Merchant-fulfilled agentic checkout
    x-group: Agentic Checkout
  - name: agents
    description: agents
    x-group: Agents
  - name: analytics
    description: Sales performance across marketplaces
    x-group: Analytics
  - name: aops
    description: Agent operating procedures
    x-group: AOPs
  - name: bots
    description: bots
    x-group: Bots
  - name: branding
    description: branding
    x-group: Branding
  - name: campaigns
    description: Campaign briefs, offer windows, and marketplace runs
    x-group: Campaigns
  - name: catalog
    description: catalog
    x-group: Catalog
  - name: commerce
    description: commerce
    x-group: Commerce
  - name: developer-platform
    description: Authenticated developer platform APIs
    x-group: Developer Platform
  - name: documents
    description: Knowledge base document uploads
    x-group: Knowledge Base
  - name: email
    description: email
    x-group: Email
  - name: follow-ups
    description: follow-ups
    x-group: Follow Ups
  - name: inventory
    description: Inventory quantities, planning signals, and marketplace listing absence
    x-group: Inventory
  - name: looks
    description: AI-styled product looks
    x-group: Looks
  - name: oauth
    description: OAuth token endpoints
    x-group: OAuth
  - name: orders
    description: Workspace and agentic orders
    x-group: Orders
  - name: organizations
    description: Organization management
    x-group: Organizations
  - name: price-books
    description: Marketplace list-price markup rules
    x-group: Price Books
  - name: products
    description: Product CRUD, bulk import, enrichment, publish, and delist
    x-group: Products
  - name: promotions
    description: Central promotions and marketplace sync
    x-group: Promotions
  - name: public-agent
    description: Public agent discovery and catalog APIs
    x-group: Public Agent
  - name: returns
    description: returns
    x-group: Returns
  - name: review-queue
    description: review-queue
    x-group: Review Queue
  - name: reviews
    description: Marketplace product reviews and seller replies
    x-group: Reviews
  - name: scripts
    description: scripts
    x-group: Scripts
  - name: settlements
    description: settlements
    x-group: Settlements
  - name: ucp
    description: Universal Commerce Protocol
    x-group: UCP
  - name: wiki
    description: wiki
    x-group: Wiki
paths:
  /api/v1/wiki/pages:
    post:
      tags:
        - wiki
      summary: Create Wiki Page
      description: >-
        Create a wiki page. Requires documents:write. The page is saved
        directly; the approval card applies only to changes an agent proposes in
        chat.


        Titles and aliases are unique within the organization. Link other pages
        in the body as [[Page title]]. The page is findable by name at once;
        fragment, meaning and graph search follow within about a minute.
      operationId: post_v1_wiki_pages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  minLength: 1
                title:
                  type: string
                  minLength: 1
                  maxLength: 160
                summary:
                  type: string
                  maxLength: 300
                body:
                  type: string
                  maxLength: 40000
                aliases:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 120
                appliesTo:
                  maxItems: 10
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - store
                          - marketplace
                          - brand
                          - category
                          - product
                          - supplier
                      id:
                        type: string
                        minLength: 1
                        maxLength: 200
                      name:
                        type: string
                        maxLength: 200
                    required:
                      - type
                      - id
                reviewBy:
                  anyOf:
                    - type: string
                      pattern: ^\d{4}-\d{2}-\d{2}$
                    - type: 'null'
                changeSummary:
                  type: string
                  maxLength: 300
              required:
                - title
      responses:
        '201':
          description: Created wiki page.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  apiVersion:
                    type: string
                    const: developer_v1
                  operationId:
                    type: string
                  status:
                    type: string
                    enum:
                      - accepted
                      - completed
                      - failed
                  jobId:
                    type: string
                  warnings:
                    type: array
                    items:
                      type: string
                  recommendations:
                    type: array
                    items:
                      type: string
                  links:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      organizationId:
                        type: string
                      title:
                        type: string
                      summary:
                        type: string
                      body:
                        type: string
                      status:
                        type: string
                        enum:
                          - active
                          - archived
                      systemDefined:
                        type: boolean
                      stale:
                        type: boolean
                      appliesTo:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - store
                                - marketplace
                                - brand
                                - category
                                - product
                                - supplier
                            id:
                              type: string
                              minLength: 1
                              maxLength: 200
                            name:
                              type: string
                              maxLength: 200
                          required:
                            - type
                            - id
                      labels:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            labelType:
                              type: string
                              enum:
                                - pref
                                - alt
                                - hidden
                            language:
                              type:
                                - string
                                - 'null'
                          required:
                            - label
                            - labelType
                            - language
                      revisionNumber:
                        type: number
                      lastConfirmedAt:
                        type: string
                      reviewBy:
                        type:
                          - string
                          - 'null'
                      indexStatus:
                        type: string
                        enum:
                          - pending
                          - indexed
                          - failed
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      editors:
                        type: array
                        items:
                          type: string
                      links:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            title:
                              type: string
                            summary:
                              type: string
                          required:
                            - id
                            - title
                            - summary
                      backlinks:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            title:
                              type: string
                            summary:
                              type: string
                          required:
                            - id
                            - title
                            - summary
                    required:
                      - id
                      - organizationId
                      - title
                      - summary
                      - body
                      - status
                      - systemDefined
                      - stale
                      - appliesTo
                      - labels
                      - revisionNumber
                      - lastConfirmedAt
                      - reviewBy
                      - indexStatus
                      - createdAt
                      - updatedAt
                      - editors
                      - links
                      - backlinks
                required:
                  - ok
                  - apiVersion
                  - operationId
                  - status
                  - warnings
                  - recommendations
                  - links
                  - data
        '400':
          description: Invalid request.
        '401':
          description: Missing credentials.
        '403':
          description: Missing OAuth scope or organization capability.
        '404':
          description: Wiki page not found in this organization.
        '409':
          description: >-
            A title or alias is already used by another page, or the page
            changed since baseRevisionNumber.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer API key for server-to-server access. Session auth is also
        supported in first-party UI flows.

````

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