---
title: Get Credit Balance
description: Retrieve how many credits your team has, has used and has left, and when the earliest of them expire. Checking the balance costs no credits.
url: https://theirstack.com/en/docs/api-reference/billing/get_billing_credit_balance_v1
---

## GET /v1/billing/credit-balance — Get Credit Balance

Retrieve how many credits your team has, has used and has left, and when the earliest of them expire. Checking the balance costs no credits.

### Authorization

`Authorization: Bearer <token>`, sent in the header.

### Response body

#### 200 — Successful Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `credits` | integer | Yes | Credits available to the team. A team still on company and API credits gets its API credits here, which pay for the API, webhooks and MCP; its company credits are in `GET /v0/billing/credit-balance`. 0 <= value. |
| `credits_left` | integer | Yes | Credits left to spend: `credits - used_credits` |
| `earliest_expiration` | string | No | Earliest expiration date among invoices with remaining credits Format: date-time. |
| `used_credits` | integer | Yes | Credits used in the current billing cycle 0 <= value. |

#### 400 — Bad Request

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | Error | Yes |  |
| `request_id` | integer | No | The request id. This is useful to contact us to help you debug the issue. The request\_id won't be present in all errors. |

##### `error`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | No | The error code. Eg: `E-001`, `E-002`, `E-003`, `E-004`, `E-005`, `E-006`, `E-007`, `E-008`, `E-009`, `E-010`, `E-011`, `E-012`, `E-013`, `E-014`, `E-015`, `E-016` Example: `"E-001"` |
| `description` | string | No | The error description |
| `title` | string | Yes | The error title. Example: `"Not allowed exception"` |

#### 402 — Payment Required

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | Error | Yes |  |
| `request_id` | integer | No | The request id. This is useful to contact us to help you debug the issue. The request\_id won't be present in all errors. |

##### `error`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | No | The error code. Eg: `E-001`, `E-002`, `E-003`, `E-004`, `E-005`, `E-006`, `E-007`, `E-008`, `E-009`, `E-010`, `E-011`, `E-012`, `E-013`, `E-014`, `E-015`, `E-016` Example: `"E-001"` |
| `description` | string | No | The error description |
| `title` | string | Yes | The error title. Example: `"Not allowed exception"` |

#### 422 — Unprocessable Content

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | Error | Yes |  |
| `request_id` | integer | No | The request id. This is useful to contact us to help you debug the issue. The request\_id won't be present in all errors. |

##### `error`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | No | The error code. Eg: `E-001`, `E-002`, `E-003`, `E-004`, `E-005`, `E-006`, `E-007`, `E-008`, `E-009`, `E-010`, `E-011`, `E-012`, `E-013`, `E-014`, `E-015`, `E-016` Example: `"E-001"` |
| `description` | string | No | The error description |
| `title` | string | Yes | The error title. Example: `"Not allowed exception"` |

#### 500 — Internal Server Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | Error | Yes |  |
| `request_id` | integer | No | The request id. This is useful to contact us to help you debug the issue. The request\_id won't be present in all errors. |

##### `error`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | No | The error code. Eg: `E-001`, `E-002`, `E-003`, `E-004`, `E-005`, `E-006`, `E-007`, `E-008`, `E-009`, `E-010`, `E-011`, `E-012`, `E-013`, `E-014`, `E-015`, `E-016` Example: `"E-001"` |
| `description` | string | No | The error description |
| `title` | string | Yes | The error title. Example: `"Not allowed exception"` |
