Coding agent documentation index Fetch the complete documentation index at: https://docs.worklittle.com/docs-agent-manifest.json Use this file to discover all available pages before exploring further.

Billing

Read your organization's balance, usage log and key limits. Read-only: cards, plans and spend limits are changed in Worklittle Business.

Overview

These read-only routes need the View billing permission on the key. Adding a card, buying credit and changing spend limits happen on Billing in Worklittle Business.

Routes

| Method | Path | What it does |
| --- | --- | --- |
| GET | `/billing` | Read the balance |
| GET | `/usage` | List usage |
| GET | `/limits` | Read limits |

Read the balance

GET /billing

The organization's credit balance and this month's spend against its limit, in US dollars.

Request:

curl -s "https://api.worklittle.com/billing" \
  -H "Authorization: Bearer $WORKLITTLE_API_KEY"

Response:

{
  "balance_usd": 42.5,
  "month": "2026-11",
  "period_start": 1761955200,
  "period_end": 1764547200,
  "spent_usd": 7.5,
  "limit_usd": 100
}

List usage

GET /usage

What was charged and done, newest first: the same log as Usage. source=public_api lists API calls with their tokens and charge.

Query parameters:

| Name | Type | Description |
| --- | --- | --- |
| `source` | string | `all` (default), `public_api`, `platform_ai` or `org_activity`. |
| `since, until` | integer | string | Unix seconds or a date. |
| `api_key_id` | string | Only calls made with this key. |
| `limit` | integer | 1 to 200. Default 100. |
| `cursor` | string | `next_cursor` from the previous page. |

Request:

curl -s "https://api.worklittle.com/usage?source=public_api&limit=50" \
  -H "Authorization: Bearer $WORKLITTLE_API_KEY"

Response:

{
  "source": "public_api",
  "data": [
    {
      "id": "use_1",
      "request_id": "req_9f",
      "api_key_id": "key_2",
      "route": "/v1/resumes",
      "tool_name": null,
      "status": "succeeded",
      "input_tokens": 2100,
      "output_tokens": 900,
      "total_tokens": 3000,
      "charged_usd": 0.01,
      "charged_usd_micros": 10000,
      "balance_after_usd_micros": 42490000,
      "created_at": 1764200000,
      "source": "public_api"
    }
  ],
  "next_cursor": null
}

Read limits

GET /limits

Each API key's per-minute rate limit and spend limits.

Request:

curl -s "https://api.worklittle.com/limits" \
  -H "Authorization: Bearer $WORKLITTLE_API_KEY"

Response:

{
  "api_keys": [
    {
      "id": "key_2",
      "name": "ATS sync",
      "key_prefix": "sk-wl-api01-ab12",
      "rate_limit_per_minute": 600,
      "daily_limit_usd": null,
      "monthly_limit_usd": 50
    }
  ],
  "defaults": {
    "new_key_rate_limit_per_minute": 60
  }
}

The example is shortened.