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

# Entity counts by source connector

> Returns the number of distinct entities ingested from each source connector (e.g. hubspot, zendesk, salesforce), derived from ``entity_source_mapping``.  Used by the pipeline status panel in the Console UI to show per-connector entity coverage.



## OpenAPI

````yaml /api-reference/memory-api.json get /v1/memory/stats/by-source
openapi: 3.1.0
info:
  title: Strattum Memory API
  description: >-
    REST API that serves entity context — profile, timeline, graph, sources and
    formatted context — for agents and UIs. (PRD-003, Workstream 1.3)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/memory/stats/by-source:
    get:
      tags:
        - memory
      summary: Entity counts by source connector
      description: >-
        Returns the number of distinct entities ingested from each source
        connector (e.g. hubspot, zendesk, salesforce), derived from
        ``entity_source_mapping``.  Used by the pipeline status panel in the
        Console UI to show per-connector entity coverage.
      operationId: stats_by_source_v1_memory_stats_by_source_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceStatsResponse'
components:
  schemas:
    SourceStatsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SourceStatItem'
          type: array
          title: Data
        count:
          type: integer
          title: Count
      type: object
      required:
        - data
        - count
      title: SourceStatsResponse
      description: Response for GET /stats/by-source.
    SourceStatItem:
      properties:
        source:
          type: string
          title: Source
        entity_count:
          type: integer
          title: Entity Count
        last_seen_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Seen At
      type: object
      required:
        - source
        - entity_count
      title: SourceStatItem
      description: A single row from GET /stats/by-source.

````