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

# Get Heartbeat Stats

> Get aggregated execution statistics for a bot's heartbeats



## OpenAPI

````yaml /api-reference/openapi.json get /v1/bot/heartbeat/stats
openapi: 3.0.0
info:
  title: BoostGPT API
  version: 1.0.0
  description: API for managing AI agents with memory capabilities
servers:
  - url: https://api.boostgpt.co
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Agent
    description: Operations for managing AI agents
  - name: Memory
    description: Operations for managing agent memory sources
  - name: Chat
    description: Operations for chatting with agents and managing conversations
  - name: Subscribers
    description: Operations for managing subscribers and leads
  - name: Tools
    description: Operations for managing agent tools and MCP server integrations
  - name: Analytics
    description: Operations for retrieving agent statistics and analytics
  - name: Heartbeat
    description: Operations for managing autonomous agent scheduling and execution
  - name: User Memory
    description: Operations for managing per-user memory entries
  - name: Email
    description: Operations for managing agent email functionality
  - name: Triggers
    description: Operations for firing proactive agent trigger events
  - name: CRM
    description: >-
      Operations for managing agent CRM contacts, pipelines, deals, follow-ups,
      and reports
  - name: Workflows
    description: Operations for managing agent workflow automations
  - name: Calendar
    description: Operations for managing agent calendar settings, availability, and events
  - name: Workspace
    description: Operations for managing agent workspaces and files
paths:
  /v1/bot/heartbeat/stats:
    get:
      tags:
        - Heartbeat
      summary: Get Heartbeat Stats
      description: Get aggregated execution statistics for a bot's heartbeats
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
          description: Project ID
        - name: bot_id
          in: query
          required: true
          schema:
            type: string
          description: Agent ID
        - name: days
          in: query
          required: false
          schema:
            type: integer
            default: 30
          description: Number of days to aggregate
      responses:
        '200':
          description: Execution statistics
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    $ref: '#/components/schemas/HeartbeatStatsObject'
components:
  schemas:
    HeartbeatStatsObject:
      type: object
      properties:
        total_executions:
          type: integer
        success_count:
          type: integer
        error_count:
          type: integer
        skipped_count:
          type: integer
        success_rate:
          type: number
        total_tokens:
          type: integer
        total_credits:
          type: integer
        avg_duration_ms:
          type: number
        active_heartbeats:
          type: integer
        by_type:
          type: object
          description: Per-type breakdown
        time_series:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
              total:
                type: integer
              success:
                type: integer
              error:
                type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key

````