---
title: "Get usage summary"
method: GET
path: "/api/v1/credits/usage/summary"
tags: ["Credits"]
---

# Get usage summary

`GET /api/v1/credits/usage/summary`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/credits/usage/summary`
- Auth: API key in header `Authorization`

Retrieve overall usage summary including all applications and total costs for a user

## Query parameters

- `user_id` string, required

## Response `200`

Usage summary retrieved successfully

- ServiceUsageSummaryResponse
  - `app_costs` ServiceAppCostSummary[]
    - `app_id` string
    - `app_name` string
    - `cpu` string
    - `daily_cost` number
    - `hourly_cost` number
    - `last_calculated_at` string
    - `memory` string
    - `monthly_cost` number
    - `region_count` integer
    - `replicas` integer
    - `status` string
  - `auto_recharge_enabled` boolean: Prepaid only
  - `auto_recharge_threshold` number: Prepaid only
  - `billing_mode` string
  - `calculated_at` string
  - `currency` string
  - `current_balance` number: Prepaid only
  - `days_remaining` number: Prepaid only
  - `estimated_daily_cost` number: 24h projection
  - `estimated_monthly_cost` number: 30d projection
  - `running_apps_count` integer
  - `suspended_apps_count` integer
  - `total_hourly_cost` number: All running apps
  - `user_id` string

## Other responses

- `400`: Invalid user_id
- `500`: Internal server error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
