> ## 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 heartbeat

> Updates the last active timestamp for a user in a specific video call room, indicating their presence.



## OpenAPI

````yaml api-reference/openapi.json post /room_heartbeat
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:
  /room_heartbeat:
    post:
      tags:
        - Video Calls
      summary: Update room participant heartbeat
      description: >-
        Updates the last active timestamp for a user in a specific video call
        room, indicating their presence.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoomHeartbeatRequest'
      responses:
        '200':
          description: Heartbeat updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: updated
        '500':
          description: Database or server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    RoomHeartbeatRequest:
      type: object
      required:
        - user_id
        - room_code
      properties:
        user_id:
          type: integer
          description: ID of the user sending the heartbeat.
          example: 201
        room_code:
          type: string
          description: The code of the room the user is in.
          example: Room123ABC
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Database connection failed

````