---
title: "Get Billing Credits"
method: GET
path: "/api/v1/organizations/billing/credits"
tags: ["main"]
---

# Get Billing Credits

`GET /api/v1/organizations/billing/credits`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/organizations/billing/credits`
- Auth: none declared

Return per-key MPS credits (OSS) or the org's paginated billing ledger.

## Query parameters

- `page` integer
- `limit` integer
- `entry_type` 'credit' | 'purchase' | 'debit' | 'grant' | 'additional_credit', nullable: Entry type; credit includes purchases, grants, and additional credits
- `start_date` string, date, nullable: Inclusive calendar date in timezone
- `end_date` string, date, nullable: Inclusive calendar date in timezone
- `timezone` string: IANA timezone for the selected calendar dates

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- MPSBillingCreditsResponse
  - `total_credits_used` number
  - `remaining_credits` number
  - `total_quota` number
  - `account` MPSBillingAccountResponse
    - `id` integer, required
    - `organization_id` integer, required
    - `billing_mode` string, required
    - `cached_balance_credits` number, required
    - `currency` string, required
  - `ledger_entries` MPSCreditLedgerEntryResponse[]
    - `id` integer, required
    - `entry_type` string, required
    - `origin` string, nullable
    - `credits_delta` number, required
    - `balance_after` number, required
    - `amount_minor` integer, nullable
    - `amount_currency` string, nullable
    - `payment_order_id` integer, nullable
    - `metric_code` string, nullable
    - `correlation_id` string, nullable
    - `aggregation_key` string, nullable
    - `usage_event_id` integer, nullable
    - `workflow_run_id` integer, nullable
    - `workflow_id` integer, nullable
    - `billable_quantity` number, nullable
    - `quantity_unit` string, nullable
    - `metadata` object
    - `created_at` string, required
  - `total_count` integer
  - `page` integer
  - `limit` integer
  - `total_pages` integer

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/organizations/billing/credits/get.md)

---

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