---
title: "Getmetrics"
method: GET
path: "/pwa/v3/projects/:project_slug/environments/:environment_slug/metrics"
tags: ["Environment"]
---

# Getmetrics

`GET /pwa/v3/projects/:project_slug/environments/:environment_slug/metrics`

## Request

- Base URL: `https://management.stytch.com`
- URL: `https://management.stytch.com/pwa/v3/projects/:project_slug/environments/:environment_slug/metrics`
- Auth: HTTP basic

Retrieves metrics for an environment.

## Path parameters

- `project_slug` string, required
- `environment_slug` string, required

## Response `200`

Successful response

- PwaEnvironmentV3GetMetricsResponse: Response type
  - `request_id` string, required
  - `metrics` PwaEnvironmentV3Metrics, required
    - `user_count` integer, required
    - `organization_count` integer, required
    - `member_count` integer, required
    - `m2m_client_count` integer, required
  - `status_code` integer, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `429`: Too Many Requests
- `500`: Internal server error

---

[API](https://skmtc.dev/stytch/apis/stytch-api-2.md) - [All operations](https://skmtc.dev/stytch/apis/stytch-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/stytch/apis/stytch-api-2/revisions/32d1b433e44f?raw)
