From a7ad089dfeb30a9795f8b5ee98905ea8b2e9768f Mon Sep 17 00:00:00 2001 From: Abdelrahman Essawy Date: Sun, 28 Jun 2026 04:13:46 +0300 Subject: [PATCH] docs(sdk): document billing.usageByClient --- sdk.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk.mdx b/sdk.mdx index d8974df..35625d4 100644 --- a/sdk.mdx +++ b/sdk.mdx @@ -133,7 +133,7 @@ await client.jobs.create({ **Batches.** `batches.create({ jobs: [...] })` submits many jobs at once and returns `batchId`, `jobCount`, and `jobIds`. Wait on each id. -**Billing.** `billing.state()` for balance and plan, `billing.usage({ start, end })` for spend, `billing.transactions({ page, limit })` for the ledger. +**Billing.** `billing.state()` for balance and plan, `billing.usage({ start, end })` for spend, `billing.usageByClient({ days })` for spend grouped by the client that ran each job (dashboard, sdk, cli, mcp, n8n, or api), `billing.transactions({ page, limit })` for the ledger. **Webhooks.** `webhooks.create({ name, url, subscribedEvents })` registers an endpoint. Verify every delivery with the zero-dependency `verifyWebhookSignature` from `@rendobar/sdk/webhooks` (reads the `X-Rendobar-Signature` header, returns `Promise`).