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

# Send a videocall push

> Sends a push notification to specified user IDs to alert them of an incoming video call. Generates a video calling code.



## OpenAPI

````yaml api-reference/openapi.json post /send-videocall-push
openapi: 3.0.0
info:
  title: Cati Main Server API
  version: 1.0.0
  description: >-
    API for managing Cati assistant users, app users, contacts, media,
    notifications and preferences.
servers:
  - url: /
security: []
paths:
  /send-videocall-push:
    post:
      tags:
        - Video Calls
      summary: Send video call push notification
      description: >-
        Sends a push notification to specified user IDs to alert them of an
        incoming video call. Generates a video calling code.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendVideocallPushRequest'
      responses:
        '200':
          description: >-
            Push notification sent successfully, including the generated video
            call code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendVideocallPushResponse'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SendVideocallPushRequest:
      type: object
      required:
        - user_ids
      properties:
        user_ids:
          type: array
          items:
            type: integer
          description: List of user IDs to send the video call push notification to.
          example:
            - 201
            - 202
    SendVideocallPushResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        code:
          type: string
          description: Generated video calling code.
          example: ABC123XYZ
        id:
          type: string
          description: OneSignal notification ID.
          example: a45f9c5d-c6a6-4c7b-b8f4-2d9d1e1f2a3b
        recipients:
          type: integer
          description: Number of recipients the notification was sent to.
          example: 2
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed

````