Compabase Usage API
The Usage API from Compabase — 1 operation(s) for usage.
The Usage API from Compabase — 1 operation(s) for usage.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/compabase:compabase-usage-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Compabase Usage API
version: 1.0.0
description: 'Operations tagged Usage across 2 of this provider''s published API definitions: compabase-openapi.yaml, compabase-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://compabase.com/api/v1
description: Full URL
tags:
- name: Usage
paths:
/usage:
get:
tags:
- Usage
summary: Monthly quota usage for this API key
description: 'Returns how many requests this key has used in the current UTC calendar month against its limit.
This endpoint does not consume quota (usage counter is not incremented).'
security:
- ApiKeyAuth: []
- BearerAuth: []
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Usage snapshot
content:
application/json:
schema:
type: object
required:
- used
- limit
- remaining
- monthUtc
- resetsAtUtc
properties:
used:
type: integer
limit:
type: integer
remaining:
type: integer
monthUtc:
type: string
description: Current billing period date (ISO 8601 date).
example: '2026-08-31'
resetsAtUtc:
type: string
format: date-time
description: When the billing period resets (ISO 8601 datetime with timezone).
example: '2026-09-01T00:00:00+00:00'
example:
used: 1240
limit: 10000
remaining: 8760
monthUtc: '2026-10-28'
resetsAtUtc: '2026-11-27T10:35:13.734189+00:00'
'401':
$ref: '#/components/responses/Unauthorized'
operationId: getUsage
x-operation-id-source: derived
servers:
- url: https://compabase.com/api/v1
description: Full URL
components:
responses:
Unauthorized:
description: Missing, invalid, or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
statusCode: 401
statusMessage: Unauthorized
message: Unauthorized
data:
message: Missing or invalid API key.
headers:
X-RateLimit-Remaining:
description: Requests left in the current one-minute window.
schema:
type: integer
example: 117
X-RateLimit-Limit:
description: Requests allowed per minute for this API key.
schema:
type: integer
example: 120
X-RateLimit-Reset:
description: Seconds until the current one-minute window resets.
schema:
type: integer
example: 42
schemas:
ErrorResponse:
type: object
required:
- statusCode
- statusMessage
- message
properties:
statusCode:
type: integer
description: HTTP status code.
statusMessage:
type: string
description: HTTP status text.
message:
type: string
description: Short error summary (same as statusMessage for most errors).
data:
type: object
description: Domain error payload set by the handler.
properties:
message:
type: string
description: Human-readable message (used by 401 responses).
error:
type: object
description: Structured domain error (used by 400/404/429 responses).
properties:
code:
type: string
description: Machine-readable domain error code.
enum:
- INVALID_KRS
- INVALID_NIP
- INVALID_CURSOR
- INVALID_RANGE
- INVALID_PARAMETER
- CONFLICTING_PARAMETERS
- INVALID_BOOLEAN
- INVALID_KEYWORDS
- INVALID_API_KEY
- UNAUTHORIZED
- NOT_FOUND
- QUOTA_EXCEEDED
message:
type: string
details:
type: object
additionalProperties: true
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
BearerAuth:
type: http
scheme: bearer
x-refined-from:
- compabase-openapi.yaml
- compabase-openapi.yaml