> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1panelnotices test

> Requires settings.write. Queues one rendered copy for the operator group's notice-preview topic.
Never for a customer. A transactional notice has a trigger — a subscription about to expire, a charge that failed — and manufacturing one against a real subscription to see how the wording reads would tell somebody their access is ending when it is not.
The body is rendered and stored at this moment rather than resolved at delivery, so the group sees the text that was in the editor even if it is edited again before the bot collects it. Answers 202; the outcome appears in the test list.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/notices/{code}/test
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/notices/{code}/test:
    post:
      tags:
        - panel
      description: >-
        Requires settings.write. Queues one rendered copy for the operator
        group's notice-preview topic.

        Never for a customer. A transactional notice has a trigger — a
        subscription about to expire, a charge that failed — and manufacturing
        one against a real subscription to see how the wording reads would tell
        somebody their access is ending when it is not.

        The body is rendered and stored at this moment rather than resolved at
        delivery, so the group sees the text that was in the editor even if it
        is edited again before the bot collects it. Answers 202; the outcome
        appears in the test list.
      operationId: sendPanelNoticeTest
      parameters:
        - in: path
          name: code
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - locale
              properties:
                locale:
                  type: string
                  enum:
                    - en
                    - ru
                body:
                  type: string
                  maxLength: 2000
      responses:
        '202':
          description: Queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelNoticeTest'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    PanelNoticeTest:
      type: object
      required:
        - id
        - code
        - locale
        - status
        - requestedAt
      properties:
        id:
          type: string
          format: uuid
        code:
          type: string
        locale:
          type: string
          enum:
            - en
            - ru
        status:
          type: string
          enum:
            - pending
            - sent
            - failed
        errorCode:
          type: string
        requestedAt:
          type: string
          format: date-time
        resolvedAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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