> Documentation index: https://www.socialcrawl.dev/llms.txt > Every page is also available as Markdown by adding .md. # Account endpoints (/docs/api-reference/account) Read your balance, your ledger, your usage and the limits of the key you call with, all free. These four reads tell a script or an agent where your account stands. Each one is free and takes the same key header as every other call. The examples show only the `data` object of each response. ## Balance `GET /v1/credits/balance` returns your balance and how long it lasts at your recent rate of spend. It also names the pack that fits that rate, with a link to buy it, and the state of auto-recharge. ```bash title="cURL" curl https://www.socialcrawl.dev/v1/credits/balance \ -H "x-api-key: $SOCIALCRAWL_API_KEY" ``` ```json title="Response (data, trimmed)" { "balance": 4200, "recent_deductions": 312, "runway": { "window_days": 14, "credits_per_day": 150, "days_left": 28 }, "recommended_pack": { "id": "pro", "name": "Pro" }, "top_up_url": "https://www.socialcrawl.dev/dashboard/billing/payments?pack=pro", "auto_recharge": { "enabled": false, "has_card": true } } ``` ## Transactions `GET /v1/credits/transactions` lists your ledger, newest first. Each row has a `type` (`deduction`, `refund`, `purchase` or `bonus`), a signed `amount`, the `balance_after`, the endpoint and the `request_id`. Add `?request_id=` to see one call. A refunded call shows its deduction and the matching refund, and a cache hit shows no row. Page through the list with `limit` and `cursor`. ```bash title="cURL" curl "https://www.socialcrawl.dev/v1/credits/transactions?limit=1" \ -H "x-api-key: $SOCIALCRAWL_API_KEY" ``` ```json title="Response (data)" { "items": [ { "type": "deduction", "amount": -1, "balance_after": 4200, "endpoint": "/v1/tiktok/profile", "platform": "tiktok", "request_id": "req-V8FXcrx0u8cq2XdL", "created_at": "2026-11-23T09:12:08.159Z", "tag": null } ] } ``` ## Usage `GET /v1/credits/usage` totals credits and requests per API key, UTC day and endpoint. Set the range with `from` and `to`. Group the rows with `group_by`, which takes any of `api_key`, `day`, `endpoint` and `tag`, separated by commas. A range that is too long answers 400, and the message states the longest range allowed. ```bash title="cURL" curl "https://www.socialcrawl.dev/v1/credits/usage?from=2026-11-01&to=2026-11-23&group_by=day" \ -H "x-api-key: $SOCIALCRAWL_API_KEY" ``` ```json title="Response (data, trimmed)" { "from": "2026-11-01", "to": "2026-11-23", "group_by": ["day"], "items": [{ "day": "2026-11-01", "requests": 40, "credits_used": 52 }], "totals": { "requests": 910, "credits_used": 1204 } } ``` [Billing](/docs/credits.md#how-do-i-audit-what-each-call-cost) explains how to split spend between clients and agents. ## The key you call with [#keys-current] `GET /v1/keys/current` describes the key that sent the request. It returns `credit_limit`, `credits_used`, `credits_remaining`, the `account_balance` and `spendable`. The last one is the smaller of the remaining limit and the balance, so it is what the key can spend right now. ```bash title="cURL" curl https://www.socialcrawl.dev/v1/keys/current \ -H "x-api-key: $SOCIALCRAWL_API_KEY" ``` ```json title="Response (data, trimmed)" { "name": "client-acme", "key_prefix": "sc_...a1b2", "status": "active", "credit_limit": 500, "credits_used": 120, "credits_remaining": 380, "account_balance": 4200, "spendable": 380, "last_30_days": { "from": "2026-10-25", "to": "2026-11-23", "requests": 40, "credits_used": 300 } } ``` A key with no limit reads `null` for the three limit fields, and its `spendable` equals the account balance. No endpoint creates, rotates or revokes a key. You manage keys in the dashboard, as [Authentication](/docs/authentication.md) shows. ## Notifications `GET /v1/notifications` lists what needs your attention, such as a paused monitor or a failed run. It is free too, and [Notifications](/docs/notifications.md) documents it.