Corpus Account API

Credit balance, usage, and upgrades.

GitHub OpenAPI

Operations 1

GET /api/v1/me Your key's credits + usage #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/corpuslaw-us:corpuslaw-us-account-api"
All apis
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.

Get an API 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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

corpuslaw-us-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Corpuslaw Us Account API
  version: 1.0.0
  contact:
    name: Corpus
    url: https://corpuslaw.us
  license:
    name: Proprietary
  description: 'Operations tagged Account across 2 of this provider''s published API definitions: corpuslaw-us-openapi.json, corpuslaw-us-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://corpuslaw.us
  description: Production
security:
- bearerAuth: []
tags:
- name: Account
  description: Credit balance, usage, and upgrades.
paths:
  /api/v1/me:
    get:
      operationId: getAccount
      summary: Your key's credits + usage
      description: Live credit balance, tier, rate limits, recent ledger entries, and upgrade options with prices. The budget-introspection endpoint for agents. (Costs 1 credit.)
      tags:
      - Account
      responses:
        '200':
          description: Success
          headers:
            X-Credits-Remaining:
              $ref: '#/components/headers/XCreditsRemaining'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
          content:
            application/json:
              schema:
                type: object
                example:
                  tier: free
                  creditsRemaining: 87
                  rateLimit:
                    requestsPerMinute: 10
                    requestsPerDay: 100
                  upgradeOptions:
                  - pack: starter
                    priceCents: 500
                    credits: 1000
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - bearerAuth:
        - search
        - node
        - browse
        - gis
        - formation
    servers:
    - url: https://corpuslaw.us
      description: Production
components:
  schemas:
    Error:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: string
          description: Machine-readable error code.
          example: insufficient_credits
        message:
          type: string
          description: Human-readable explanation with a recovery hint.
        upgradeUrl:
          type: string
          description: Where to buy more credits (present on 402).
        retryAfterSec:
          type: integer
          description: Seconds to wait before retrying (present on 429).
  headers:
    XRateLimitLimit:
      description: Requests-per-minute ceiling for this key's tier.
      schema:
        type: integer
    XCreditsRemaining:
      description: Credits left on this key after the call.
      schema:
        type: integer
  responses:
    InsufficientCredits:
      description: No credits remaining.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: insufficient_credits
            message: You have no credits remaining. Buy credits to continue.
            upgradeUrl: https://corpuslaw.us/api/v1/billing/checkout
    RateLimited:
      description: Rate limit exceeded. Respect `Retry-After`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: rate_limited
            message: Rate limit exceeded. Try again in 60 seconds.
            retryAfterSec: 60
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: invalid_api_key
            message: 'A valid API key is required. Pass it via the Authorization: Bearer <key> header.'
    Forbidden:
      description: Key lacks the required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: insufficient_scope
            message: This key does not have any of the required scopes.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Pass your key as `Authorization: Bearer <api_key>`. Header only — query-param auth is disabled in production.'
x-refined-from:
- corpuslaw-us-openapi.json
- corpuslaw-us-openapi.yml