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

# Create a status page

> Create a hidden status page. Nothing is public until statusPages.setVisibility publishes it. A plan allows a limited number of status pages across all its projects; at the limit this answers 402 and existing pages are untouched.



## OpenAPI

````yaml /openapi.json post /status-pages
openapi: 3.1.1
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
paths:
  /status-pages:
    post:
      tags:
        - StatusPages
      summary: Create a status page
      description: >-
        Create a hidden status page. Nothing is public until
        statusPages.setVisibility publishes it. A plan allows a limited number
        of status pages across all its projects; at the limit this answers 402
        and existing pages are untouched.
      operationId: statusPages.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: Page title.
                description:
                  anyOf:
                    - type: string
                      maxLength: 500
                    - type: 'null'
                  description: Short text under the title.
                logoUrl:
                  anyOf:
                    - type: string
                      maxLength: 2048
                      format: uri
                    - type: 'null'
                  description: HTTPS URL of the logo shown in the header.
                accentColor:
                  anyOf:
                    - type: string
                      pattern: ^#[0-9a-fA-F]{6}$
                    - type: 'null'
                  description: 'Accent color as #rrggbb.'
                theme:
                  enum:
                    - light
                    - dark
                    - system
                  type: string
                  description: Color scheme the public page renders with.
                supportUrl:
                  anyOf:
                    - type: string
                      maxLength: 2048
                      format: uri
                    - type: 'null'
                  description: Where readers go for help, linked from the header.
                timezone:
                  type: string
                  minLength: 1
                  maxLength: 64
                  description: IANA time zone the page shows times in. Defaults to UTC.
                projectId:
                  type: string
                  format: uuid
                  description: >-
                    Project that owns the status page. Auto-filled from CLI and
                    SDK context when omitted.
                slug:
                  type: string
                  pattern: ^[a-z0-9](?:[a-z0-9-]{1,38})[a-z0-9]$
                  description: >-
                    The page's DNS label on sazabi.page: 3-40 lowercase letters,
                    digits and inner hyphens. Unique across Sazabi.
              required:
                - title
                - slug
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusPage:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      projectId:
                        type: string
                        format: uuid
                      slug:
                        type: string
                      title:
                        type: string
                      description:
                        anyOf:
                          - type: string
                          - type: 'null'
                      logoUrl:
                        anyOf:
                          - type: string
                          - type: 'null'
                      accentColor:
                        anyOf:
                          - type: string
                          - type: 'null'
                      theme:
                        enum:
                          - light
                          - dark
                          - system
                        type: string
                        description: Color scheme the public page renders with.
                      supportUrl:
                        anyOf:
                          - type: string
                          - type: 'null'
                      timezone:
                        type: string
                      visibility:
                        enum:
                          - hidden
                          - published
                        type: string
                        description: >-
                          hidden: only the project's members can see the page.
                          published: anyone can read it at its URL.
                      publishedAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      suspended:
                        type: boolean
                        description: >-
                          True when Sazabi suspended the page for abuse; a
                          suspended page is not public whatever its visibility.
                      url:
                        type: string
                        description: The page's public URL.
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      sections:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            key:
                              type: string
                            name:
                              type: string
                            description:
                              anyOf:
                                - type: string
                                - type: 'null'
                            position:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            collapsedByDefault:
                              type: boolean
                          required:
                            - id
                            - key
                            - name
                            - description
                            - position
                            - collapsedByDefault
                      surfaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            key:
                              type: string
                            name:
                              type: string
                            description:
                              anyOf:
                                - type: string
                                - type: 'null'
                            sectionId:
                              anyOf:
                                - type: string
                                  format: uuid
                                - type: 'null'
                              description: >-
                                Section the surface sits in, or null at the
                                page's top level.
                            position:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            showUptime:
                              type: boolean
                            status:
                              enum:
                                - operational
                                - degraded_performance
                                - partial_outage
                                - major_outage
                                - under_maintenance
                              type: string
                              description: >-
                                A surface's current status: the worst impact
                                named by the latest published update of each
                                open published report, else operational.
                          required:
                            - id
                            - key
                            - name
                            - description
                            - sectionId
                            - position
                            - showUptime
                            - status
                    required:
                      - id
                      - projectId
                      - slug
                      - title
                      - description
                      - logoUrl
                      - accentColor
                      - theme
                      - supportUrl
                      - timezone
                      - visibility
                      - publishedAt
                      - suspended
                      - url
                      - createdAt
                      - updatedAt
                      - sections
                      - surfaces
                required:
                  - statusPage

````

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