---
title: "Get credit balance"
method: GET
path: "/credits"
tags: ["Credits"]
---

# Get credit balance

`GET /credits`

## Request

- Base URL: `https://api.textla.com/v1`
- URL: `https://api.textla.com/v1/credits`
- Auth: HTTP bearer

Returns the account's available credit as a decimal string. An account with no balance record yet has an `available_credit` of `0`. Credits apply to ISV accounts only: an Enterprise account gets a 412.

## Response `200`

OK

- CreditBalance
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `available_credit` string, required: The available credit, as a decimal string. An account with no balance record yet has 0.
  - `has_purchased_credits` boolean, required: Whether the account has ever purchased credits.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `412`: Precondition Failed
- `429`: Too Many Requests
- `500`: Internal Server Error
- `501`: Not Implemented
- `502`: Bad Gateway
- `503`: Service Unavailable
- `504`: Gateway Timeout

---

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