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

# Test Send

> Send a test FCM push to verify the config is correct.

Defers the actual FCM call to `notifications.push.send_raw_to_token`
— same code path the production sender uses, so a green test
really does mean live sends will work too.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json post /api/v1/admin/firebase/test-send
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/admin/firebase/test-send:
    post:
      tags:
        - admin:firebase
      summary: Test Send
      description: |-
        Send a test FCM push to verify the config is correct.

        Defers the actual FCM call to `notifications.push.send_raw_to_token`
        — same code path the production sender uses, so a green test
        really does mean live sends will work too.
      operationId: test_send_api_v1_admin_firebase_test_send_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestSendBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_TestSendResult_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TestSendBody:
      properties:
        target:
          type: string
          enum:
            - token
            - self_devices
          title: Target
        fcm_token:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Fcm Token
        title:
          type: string
          maxLength: 120
          title: Title
          default: Test notification
        body:
          type: string
          maxLength: 400
          title: Body
          default: If you can see this, FCM is wired correctly.
      type: object
      required:
        - target
      title: TestSendBody
      description: |-
        Body of POST /admin/firebase/test-send.

        Either send to a specific FCM token (operator pastes it) or to all
        devices of the current operator. The latter lets a tenant verify
        everything end-to-end including topic / channel setup in seconds.
    ApiResponse_TestSendResult_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/TestSendResult'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[TestSendResult]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TestSendResult:
      properties:
        sent:
          type: integer
          title: Sent
        failed:
          type: integer
          title: Failed
        failures:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Failures
      type: object
      required:
        - sent
        - failed
      title: TestSendResult
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````