---
title: "Get 24 Hour Flow Stats for a User"
method: GET
path: "/users/{user_id}/flows/dashboard"
tags: ["Metrics"]
---

# Get 24 Hour Flow Stats for a User

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

## Request

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

Retrieves the metrics and processing status of each flow that processed data in the last 24 hours. 

Each item reflects the total number of records processed by each stage of all flows accessible by the user that processed any data in the specified time window.

## Path parameters

- `user_id` integer, required

## Query parameters

- `access_role` 'collaborator' | 'operator' | 'admin' | 'owner': Add this query parameter to a request to view resources for which the authenticated user has permission. 1. `collaborator`: Resources to which the user has access via the collaborator or higher permissions. 2. `operator`: Resources to which the user has access via the operator or higher permissions. 3. `admin`: Resources to which the user has access via the administrator or owner permissions. 4. `owner`: Resources created by the user. Note that the absence of this property in the request is treated as `owner`, so you do not need to set `access_role=owner` in the query.

## 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
    - `sources` object
    - `sinks` object
    - `datasets` object
    - `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)
