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

# Get workspace stats

> Returns dashboard statistics for the workspace. Cached for 5 minutes.



## OpenAPI

````yaml https://folksbase.onrender.com/api/openapi.json get /api/stats
openapi: 3.1.0
info:
  title: folksbase API
  description: >-
    Contact management API for folksbase. Upload CSVs, manage contacts and tags,
    export data.
  version: 1.0.0
servers:
  - url: https://folksbase.onrender.com
    description: Production
  - url: http://localhost:3001
    description: Local development
security:
  - bearerAuth: []
paths:
  /api/stats:
    get:
      tags:
        - Stats
      summary: Get workspace stats
      description: Returns dashboard statistics for the workspace. Cached for 5 minutes.
      operationId: getApiStats
      responses:
        '200':
          description: Workspace statistics
          content:
            application/json:
              schema:
                type: object
                properties:
                  totalContacts:
                    type: number
                  totalImports:
                    type: number
                  successRate:
                    type: number
                  contactsThisMonth:
                    type: number
                  contactsGrowth:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                        count:
                          type: number
                      required:
                        - date
                        - count
                required:
                  - totalContacts
                  - totalImports
                  - successRate
                  - contactsThisMonth
                  - contactsGrowth
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase JWT token from Authorization header

````