---
title: "Spend by cost center for a month."
method: GET
path: "/v1/organizations/current/spend"
tags: ["organizations"]
---

# Spend by cost center for a month.

`GET /v1/organizations/current/spend`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/organizations/current/spend`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `organization:read`)

Organization admins only. Credits the workspaces' questions took in the month (UTC), less what came back, by workspace and cost center: a project's label wins over its workspace's; questions with neither have `costCenter` null.

## Query parameters

- `month` string

## Response `200`

OK

- OrganizationSpendResponse
  - `month` string, required
  - `totalSpentPence` integer, required
  - `totalQuestions` integer, required
  - `rows` object[], required
    - `costCenter` string, nullable, required
    - `workspaceId` string, required
    - `workspaceName` string, required
    - `questions` integer, required
    - `spentPence` integer, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/edbfecb1e360?raw)
