# Shardflux Usage and spend API

**Canonical:** https://apis.io/apis/shardflux-dev/shardflux-dev-usage-and-spend-api/  
**Provider:** Shardflux — https://apis.io/providers/shardflux-dev/  
**Base URL:** https://api.shardflux.dev  
**Documentation:** https://docs.shardflux.dev/reference/http-api.md

Shardflux Usage and spend API is one of 18 APIs that [Shardflux](https://apis.io/providers/shardflux-dev/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 1 JSON Schema definition. Tagged areas include Usage and spend. The published artifact set on APIs.io includes an OpenAPI specification and 1 JSON Schema.

Metered usage, estimates, grants and spend of an organization or a workspace.

## Operations (8)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/usage/summary` | Current-period project usage |
| GET | `/v1/organizations/{organization_id}/usage/summary` | Current-period usage, included allowances and cap state of an organization |
| GET | `/v1/organizations/{organization_id}/usage` | Usage time series (hour or day buckets) from the ledger |
| GET | `/v1/workspaces/{workspace_id}/usage` | Usage of one workspace (time series and totals) |
| GET | `/v1/organizations/{organization_id}/usage/estimate` | Period cost estimate: subscription fee, usage charges and projected allowance… |
| GET | `/v1/organizations/{organization_id}/grants` | Quotas, per-workspace ceilings/reservations/grants and compute budget leases |
| GET | `/v1/organizations/{organization_id}/spend` | Spend policy, charges this period, cap state and enforcement (leases, overshoot… |
| GET | `/v1/organizations/{organization_id}/spend-policy` | Usage alert thresholds and opt-in overage with its spend cap |

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/shardflux-dev/openapi/shardflux-dev-usage-and-spend-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-spend-cap-schema.json

## Other Shardflux APIs (12)

- [Shardflux Billing API](https://apis.io/apis/shardflux-dev/shardflux-dev-billing-api/)
- [Shardflux Browser profiles API](https://apis.io/apis/shardflux-dev/shardflux-dev-browser-profiles-api/)
- [Shardflux Client versions API](https://apis.io/apis/shardflux-dev/shardflux-dev-client-versions-api/)
- [Shardflux Egress policy API](https://apis.io/apis/shardflux-dev/shardflux-dev-egress-policy-api/)
- [Shardflux Entitlements API](https://apis.io/apis/shardflux-dev/shardflux-dev-entitlements-api/)
- [Shardflux Feedback API](https://apis.io/apis/shardflux-dev/shardflux-dev-feedback-api/)
- [Shardflux Operations API](https://apis.io/apis/shardflux-dev/shardflux-dev-operations-api/)
- [Shardflux Organizations API](https://apis.io/apis/shardflux-dev/shardflux-dev-organizations-api/)
- [Shardflux Principal API](https://apis.io/apis/shardflux-dev/shardflux-dev-principal-api/)
- [Shardflux Projects API](https://apis.io/apis/shardflux-dev/shardflux-dev-projects-api/)
- [Shardflux Secrets API](https://apis.io/apis/shardflux-dev/shardflux-dev-secrets-api/)
- [Shardflux Template builds API](https://apis.io/apis/shardflux-dev/shardflux-dev-template-builds-api/)

## Tags

Usage and spend

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/shardflux-dev` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/shardflux-dev/shardflux-dev-usage-and-spend-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/shardflux-dev/.
