# Read the account balance

`GET https://api.answerline.dev/v1/credits`

Get the USD balance currently on your organization's account. This lets you check the balance from code, even for workloads that only use async, without sending a sync /v1/monitor/* request merely to read the X-Credits-Remaining header. The definitive check still happens at the time each task is billed.

## Returns

- `remaining` (number, required): USD you can still spend: the balance less what open tasks hold back.
- `perCycle` (integer, required): Always null: balances do not reset.
- `cycleResetsAt` (string, required): Always null: balances do not reset.

## Responses

- 200: The USD balance as of now.
- 401: Unauthorized - authentication failed
- 429: Too Many Requests - the service dropped the request because it was overloaded (`SERVICE_OVERLOADED`), which returns `Retry-After` without any limit headers, or one address presented too many unknown keys (`RATE_LIMIT_EXCEEDED`, with `Retry-After`)
- 500: Internal Server Error

## Request

curl:

```bash
curl -X GET "https://api.answerline.dev/v1/credits" \
  -H "Authorization: Bearer $API_KEY"
```


## Example responses

200:

```json
{
  "remaining": 12.34,
  "perCycle": null,
  "cycleResetsAt": null
}
```

