---
title: "Read the current UTC month past-include credit attribution for the org this connection is bound to (personal or team)..."
method: GET
path: "/v1/account/usage/by-package"
tags: ["account"]
---

# Read the current UTC month past-include credit attribution for the org this connection is bound to (personal or team)...

`GET /v1/account/usage/by-package`

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/account/usage/by-package`
- Auth: HTTP bearer

Read the current UTC month past-include credit attribution for the org this connection is bound to (personal or team) by package (Where it went): Worker compute and Rows read credits only — not execute, jobs, or package exports. Optional packageId returns that package’s slice of the same period breakdown.

Org permission: `billing:read`.

## Query parameters

- `packageId` string: When set, return only this package’s row from the current-month breakdown (zero row when the package spent nothing). Omit for the full Where-it-went list including Ad hoc.

## Response `200`

Success.

- object
  - `month` string, required
  - `totalCreditsMicroUsd` integer, required
  - `rows` object[], required
    - `packageId` string, required
    - `name` string, required
    - `href` string, nullable, required
    - `creditsMicroUsd` integer, required
    - `share` number, required
    - `meters` object[], required
      - `meter` 'unique_worker_days' | 'durable_object_rows_read', required
      - `label` string, required
      - `creditsMicroUsd` integer, required
    - `cumulative` object[], required
      - `day` string, required
      - `creditsMicroUsd` integer, required
    - `isAdHoc` boolean, required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

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