---
title: "Get credit balance"
method: GET
path: "/credits/balance/{appId}"
tags: ["Credits"]
---

# Get credit balance

`GET /credits/balance/{appId}`

## Request

- Base URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api`
- URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/credits/balance/{appId}`
- Auth: HTTP bearer

Retrieve the current credit balance for a specific app

## Path parameters

- `appId` string, required

## Response `200`

Credit balance retrieved successfully

- object
  - `success` boolean
  - `balance` number
  - `totalPurchased` number
  - `totalConsumed` number
  - `lastPurchaseAt` string, date-time
  - `lastConsumedAt` string, date-time

## Other responses

- `401`: Missing or invalid authentication token

---

[API](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api.md) · [All operations](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/revisions/53e075911af9?raw)
