---
schema: "agents-md/1.0"
ai_agents_docs_site_root: "https://agents.1health.io/public/demo/api/"
rest_api_root: "/v3/custom-data/statistics/apps"
path_to_agent_file: "https://agents.1health.io/public/demo/api/v3/custom-data/statistics/apps/agents.md"
kind: "endpoints"
methods: [POST]
api_version: "v3"
parent: "https://agents.1health.io/public/demo/api/v3/custom-data/statistics/agents.md"
html: "https://agents.1health.io/public/demo/api/v3/custom-data/statistics/apps/index.html"
how_to: "https://agents.1health.io/public/demo/api/v3/custom-data/statistics/apps/how-to.md"
example: "https://agents.1health.io/public/demo/api/v3/custom-data/statistics/apps/example.md"
source_version: "c6d8615bf85dc53cecac8f4d6146c22e6edc1563"
extractor_model: "gpt-4o-2024-08-06"
extractor_prompt_version: "2026-08-13.v1"
reconciler_model: "claude-sonnet-4-6"
reconciler_prompt_version: "2026-08-13.v1"
generated_at: "2026-10-07T03:00:11.782040+00:00"
---

# /v3/custom-data/statistics/apps

**URL**: https://demo.1health.io/api/v3/custom-data/statistics/apps

_No description available in the API specification._

## Endpoints

| Endpoint | Method | Description |
| --- | --- | --- |
| /v3/custom-data/statistics/apps | POST | Get custom data counts per application |

---

## POST /v3/custom-data/statistics/apps

Get custom data counts per application

### Overview

Returns custom data counts — definition count, field count and row count — for each of the requested applications, for rendering per-app badges on the studio's app cards and sidebar in a single call.

### Authorization

Bearer JWT required. See the [authentication guide](https://agents.1health.io/public/demo/api/authentication/agents.md).

### Request Body

**Content-Type**: `application/json` · **DTO**: `AppCustomDataStatsRequestDTO`

```json
{
  "appIds": "example-value",
  "hasDefinitionsOnly": true
}
```

| Field | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| appIds | array | Yes |  | The external application IDs to return counts for. |
| hasDefinitionsOnly | boolean | No |  | When true, applications with no custom data definitions are omitted from the result. |

### Responses

#### 200 OK

Per-application custom data counts retrieved successfully.

**DTO**: `AppCustomDataStatsDTO`

```json
[
  {
    "appId": 1001,
    "definitionCount": 1001,
    "fieldCount": 1001,
    "rowCount": 1001
  }
]
```

| Field | Type | Nullable | Description |
| --- | --- | --- | --- |
| appId | Long | No | The external application ID. |
| definitionCount | long | No | Number of custom data definitions the application has. |
| fieldCount | long | No | Total number of custom fields across the application's definitions. |
| rowCount | long | No | Number of custom_data rows for the application across all tenants. |

#### 401 Unauthorized

Not authenticated — valid session required.

### Example

```bash
curl -X POST "https://demo.1health.io/api/v3/custom-data/statistics/apps" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" -d '{"appIds": "example-value", "hasDefinitionsOnly": true}'
```

---

## Navigation
Parent: https://agents.1health.io/public/demo/api/v3/custom-data/statistics/agents.md · Site guide: https://agents.1health.io/public/demo/api/agents.md
