---
title: "Get Daily Data Processing Metrics for a User"
method: GET
path: "/users/{user_id}/metrics"
tags: ["Metrics"]
---

# Get Daily Data Processing Metrics for a User

`GET /users/{user_id}/metrics`

## Request

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

Retrieves daily data processing metrics of all sources or all destinations owned by a user.

## Path parameters

- `user_id` integer, required

## Query parameters

- `org_id` integer
- `resource_type` 'SOURCE' | 'SINK', required
- `from` string, date-time, required
- `to` string, date-time
- `aggregate` integer, required

## Response `200`

Success

- object
  - `metrics` object[]
    - `time` string, date: The date (in UTC) that the metrics in this entry are applicable for.
    - `records` integer: The total number of records that were processed on the date indicated by the `time` property.
    - `size` integer: The total volume (in bytes) of records that were processed on the date indicated by the `time` property.
    - `errors` integer: The total number of data processing errors that occurred on the date indicated by the `time` property.
  - `status` integer: Status of the report request. This must be `200` or `Ok` for the metrics object in the response to be considered valid.

## Other responses

- `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)
