---
title: "GET /v1/billing/operations/{operationId}/credits"
method: GET
path: "/v1/billing/operations/{operationId}/credits"
tags: ["Billing"]
---

# GET /v1/billing/operations/{operationId}/credits

`GET /v1/billing/operations/{operationId}/credits`

The recorded credit total for a single operation (a review run, eval run, fix run, cloud launch or scenario generation). Returns `credits: null` when nothing has been recorded for the operation, which is distinct from a recorded charge of zero.

## Path parameters

- `operationId` string, required

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, required
    - `type` 'operation-credits', required
    - `attributes` object, required
      - `credits` number, nullable, required — Credits charged against this operation, or null when no charge has been recorded for it.
      - `byType` object, nullable, required — Credits charged against this operation split by credit type (usage, platform, ai), or null when no charge has been recorded.
        - `usage` number, required
        - `platform` number, required
        - `ai` number, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-09-23** `6da83f4191fc` — 1 info
  - added the required property `data/attributes/byType` to the response with the `200` status
- **2026-09-15** `d50a02b79ad3` — 2 info
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/url` to the response with the `403` status

[Change history](https://skmtc.dev/tessl/apis/tessl-api/changes/v1/billing/operations/:operationId/credits/get.md)

---

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