Skip to content

CP-8987 Document an organisation's usage endpoints - #138

Merged
mattkepple merged 2 commits into
mainfrom
CP-8987-usage-docs
Nov 6, 2026
Merged

mattkepple merged 2 commits into
mainfrom
CP-8987-usage-docs

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Jira: https://makerble.atlassian.net/browse/CP-8987
Rails endpoint: MakerbleDev/makerble#17435 (stacked on #17431, the Our Account > Usage page)

Documents GET /organisations/{organisation_id}/usage and GET /organisations/{organisation_id}/usage/history:

  • openapi.yaml: the Usage tag, both paths (operationIds getOrganisationUsage, getOrganisationUsageHistory, tokenAuth, Unauthorized / NotFound responses, an example) and the OrganisationUsage, OrganisationUsageType and OrganisationUsageHistory schemas. The same text is vendored in the Rails PR's spec/support/api_schemas/openapi.yaml, where contract specs check the endpoints against it.
  • server.js: a Usage section with two endpointCards, after Seats, and its nav link.

The diff touches only openapi.yaml and the cards and nav in server.js. npm run check passes.

Merge timing: per the Makerble CLAUDE.md, while the docs are pre-launch this can merge once reviewed; once they have launched publicly, hold it until #17435 is live in production, since every push to main deploys.


Generated by Claude Code

GET /organisations/{organisation_id}/usage and .../usage/history, the
Our Account > Usage page over API v2: usage against each allowance this
month with charges so far and expected, and the previous 12 months.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xo9M1eCaEb77Ww9z3K
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 6, 2026 2:09pm UTC

@mattkepple
mattkepple marked this pull request as ready for review November 6, 2026 14:08
@mattkepple
mattkepple merged commit e6c3c1a into main Nov 6, 2026
2 of 3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1b28281a Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants