---
search:
  tags:
    - usage
    - POST
seo:
  description: >-
    Return the account's credits used and remaining in the current… Reference
    for the POST /api/v1/tools/check_usage endpoint in the Fieldwork gateway
    API.
sidebar:
  label: check_usage
  badge: POST
title: check_usage
type: openapi-operation
---
Return the account's credits used and remaining in the current period, as the provider reports them. Use before a large job, or to explain a quota error. Changes nothing. Defaults to firecrawl. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/check_usage`

**Request body** (`application/json`, required)

- `provider` (string)
- `timeout` (integer) — Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

Request body example:

```json
{
  "provider": "firecrawl",
  "timeout": 1,
  "maxCharacters": 1
}
```

**Responses**

- `200` — The provider that ran the call and its normalized result.
- `default` — A refusal or a failed call. Branch on error.code; never parse the message.

Response example, 200:

```json
{
  "provider": "firecrawl",
  "requestId": "string",
  "result": {
    "breakdown": {
      "property1": 0,
      "property2": 0
    },
    "limit": 0,
    "periodEnd": "string",
    "remaining": 0,
    "used": 0,
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
