# 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.

Source: https://docs.spicrawl.com/api-reference/partner/partner-summary

## GET /v1/partner/summary

Operation ID: `partnerSummary`. API key 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.

### Example

```bash
curl "https://api.spicrawl.com/v1/partner/summary" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Responses

#### 200

The partner's summary.

`application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `partner` | boolean | yes | Always true for a partner account. |
| `allow_account_spend` | boolean | yes | Whether Free-plan workspaces may draw the partner's account credits (PATCH /v1/partner/settings). |
| `org_id` | string (uuid) | yes |  |
| `free_credits` | integer | yes | The partner's default monthly allowance per workspace, in whole credits. |
| `workspace_daily_limit` | integer | yes | New workspaces the partner may create per UTC day. |
| `workspace_count` | integer | yes | Workspaces the partner has created, deleted ones included. |
| `limits` | object | yes |  |
| `users` | object | yes | Workspaces not deleted. `total` also counts closed ones, which are in neither `active` nor `suspended`. |
| `caps` | object | yes | Over active workspaces only. |
| `balance` | object | yes | The same figures as `GET /v1/partner/wallet` (the partner's account credits for this month). Only `balance_credits` can be given to users. |

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
