---
title: "Get Total Account Metrics for a User"
method: GET
path: "/users/{user_id}/flows/account_metrics"
tags: ["Metrics"]
---

# Get Total Account Metrics for a User

`GET /users/{user_id}/flows/account_metrics`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/users/{user_id}/flows/account_metrics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/users/:user_id/flows/account_metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves total account utilization metrics for a user in an organization. The result consists of aggregated information about records processed within the specified date range by all resources owned by the user.

## Path parameters

- `user_id` integer, required

## Query parameters

- `org_id` integer
- `from` string, date-time, required
- `to` string, date-time

## Headers

- `Accept` 'application/vnd.nexla.api.v1+json' | 'application/json': Setting to `application/vnd.nexla.api.v1+json` is recommended.

## Response `200`

Success

- object
  - `status` integer: Status of the report request. This must be `200` or `Ok` for the metrics object in the response to be considered valid.
  - `metrics` object[]
    - `data` object
      - `records` integer: The total number of records processed during the specified time range.
      - `size` integer: The total volume of records processed (in bytes) during the specified time range.
    - `start_time` string, date-time
    - `end_time` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found error

---

[API](https://skmtc.dev/nexla/apis/nexla-rest-api.md) - [All operations](https://skmtc.dev/nexla/apis/nexla-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nexla/apis/nexla-rest-api/revisions/ef02be92fe7b?raw)
