Get a workspace's CI minutes usage for a month
GET/api/owners/{handle}/ci/usage
getOwnerCiUsage
The owner's workspace CI minutes for one calendar month (UTC): `used_seconds` is the billed meter the CI quota gate reads and `included_minutes` the allowance it compares against. `repos` breaks the month down over the repositories the caller can read; minutes of repositories the caller cannot read, or that were deleted, are `other_seconds`. Requires workspace membership (non-members get 404).
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/owners/HANDLE/ci/usage'fetch
fetch("https://neosource.dev/api/owners/HANDLE/ci/usage", {
method: "GET",
});Path parameters
handlerequiredHandle of the owner — either a user account or an organization.
Query parameters
monthMonth to report, `YYYY-MM`. Default the current month; a future or malformed month is a 400.
Responses
200CI usage
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget