The partner's account at a glance
The partner's allowance, its users and caps, and its balance (the same figures as `GET /v1/partner/wallet` under `balance`), in one call.
Requires scope: partner
The partner's allowance, its users and caps, and its balance (the same figures as GET /v1/partner/wallet
under balance), in one call. users and caps are computed in one statement from the partner's
workspaces: caps.committed is the sum of the effective cap of each active workspace that has one, and
caps.uncapped_users counts the active ones that have none.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/partner/summary"{ "partner": true, "allow_account_spend": true, "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "free_credits": 0, "workspace_daily_limit": 0, "workspace_count": 0, "limits": { "max_requests_per_minute": 0, "max_concurrency": 0, "max_free_credits": 0 }, "users": { "total": 0, "active": 0, "suspended": 0 }, "caps": { "committed": 0, "uncapped_users": 0 }, "balance": { "funded_credits": 0, "credit_line_credits": 0, "spent_credits": 0, "balance_credits": 0, "available_credits": 0, "funded_micro": 0, "credit_line_micro": 0, "spent_micro": 0, "balance_micro": 0, "available_micro": 0 }}What this API key is GET
Returns the key's id, name, prefix, scopes, environment, organization, and whether the key belongs to a partner account (`partner`).
The partner's usage across its workspaces GET
Usage summed over the partner's child workspaces. `group_by=day` gives one row per UTC day; `group_by=workspace` gives one row per workspace, named by `external_user_id`, and pages it.