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

# Get Credits

`GET /v1/billing/credits`

Get the current plan and remaining email, image, and monthly credits for the API key owner. Requires API key with billing:read permission.

## Response `200`

Plan and remaining credits

- ApiResponseBillingCredits
  - `success` boolean, required
  - `data` object, nullable
    - `currentPlan` string, required — The account's current plan
    - `isExpired` boolean, required — Whether the current plan has expired
    - `planExpiry` string, required — Date the current plan period ends (ISO 8601)
    - `hasCredits` boolean, required — Whether the account has credits available right now
    - `emailCreditsRemainingToday` number, required — Email generation credits remaining today
    - `imageCreditsRemainingToday` number, required — Image generation credits remaining today
    - `monthlyCreditsRemaining` number, required — Credits remaining in the current monthly period
  - `error` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - Missing required permissions or access denied

---

[API](https://skmtc.net/migma/apis/migma-ai-api-v1.md) · [All operations](https://skmtc.net/migma/apis/migma-ai-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/migma/migma-ai-api-v1/revisions/2d06ad0e0bc3/schema)
