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

# Get Stats

Use this API to fetch aggregate Memory counts for the workspace.

# Endpoint

`POST https://api.velt.dev/v2/memory/stats/get`

# Headers

**x-velt-api-key** `string` *required*

Your API key.

**x-velt-auth-token** `string` *required*

Your [Auth Token](https://velt.dev/docs/security/auth-tokens.md).

# Body

#### Params

**data** `object` *required*

No fields required. Send an empty object.

## **Example Requests**

#### Get workspace stats

```JSON theme={null}
{
  "data": {}
}
```

# Response

The result reports enriched activities, reviewer profiles, detected patterns, and knowledge sources.

Three of the four counts stop at a ceiling: `totalActivities` at `10000`, `totalProfiles` at `500`, and `totalPatterns` at `100`. A value equal to the ceiling means at least that many, so do not treat it as an exact total. `totalKnowledgeSources` is exact.

#### Success Response

```JSON theme={null}
{
  "result": {
    "totalActivities": 1284,
    "totalProfiles": 12,
    "totalPatterns": 8,
    "totalKnowledgeSources": 5
  }
}
```

#### Failure Response

```JSON theme={null}
{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
```

```js theme={null}
{
  "result": {
    "totalActivities": 1284,
    "totalProfiles": 12,
    "totalPatterns": 8,
    "totalKnowledgeSources": 5
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.