Starcovery Billing API

Prepaid credit balance of the organization. Owners and admins buy credit packs and manage billing in the web app at /app?settings=billing.

GitHub OpenAPI

Operations 1

GET /api/billing/state Read billing state #

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/starcovery-com:starcovery-com-billing-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. 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 Specification

starcovery-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Starcovery Billing API
  version: '1'
  description: 'Starcovery machine surface. Send API-Version: 1; every response carries API-Version: 1, the version served, whatever version the request sent. A JSON request body over 5657944 bytes, or one with no Content-Length or with a Content-Length that is not a declared length the server will read, answers 413 `body_too_large` without being read whole, a JSON request body with a key its operation does not declare answers 400 `invalid_body` naming the key, and an operation that lists no request body or a JSON `null` one takes none: send no body.'
servers:
- description: Production. Unsigned GET /api/search is the live test call. There is no separate sandbox host.
  url: https://www.starcovery.com
security: []
tags:
- name: Billing
  description: Prepaid credit balance of the organization. Owners and admins buy credit packs and manage billing in the web app at /app?settings=billing.
paths:
  /api/billing/state:
    get:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                anyOf:
                - type: object
                  properties:
                    balance:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    cardOnFile:
                      type: boolean
                    dailySearches:
                      type: 'null'
                    freeGrant:
                      type: string
                      enum:
                      - none
                    lastPack:
                      anyOf:
                      - type: string
                        enum:
                        - '25'
                        - '100'
                        - '500'
                        - '2000'
                        description: Prepaid credit pack, named by its price in US dollars. Larger packs add bonus credits.
                      - type: 'null'
                  required:
                  - balance
                  - cardOnFile
                  - dailySearches
                  - freeGrant
                  - lastPack
                  additionalProperties: false
                - type: object
                  properties:
                    balance:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    cardOnFile:
                      type: boolean
                    dailySearches:
                      type: object
                      properties:
                        limit:
                          type: integer
                          maximum: 9007199254740991
                          exclusiveMinimum: 0
                        remaining:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        resetAt:
                          type: integer
                          maximum: 9007199254740991
                          exclusiveMinimum: 0
                      required:
                      - limit
                      - remaining
                      - resetAt
                      additionalProperties: false
                    freeGrant:
                      type: string
                      enum:
                      - identified_daily
                    lastPack:
                      anyOf:
                      - type: string
                        enum:
                        - '25'
                        - '100'
                        - '500'
                        - '2000'
                        description: Prepaid credit pack, named by its price in US dollars. Larger packs add bonus credits.
                      - type: 'null'
                  required:
                  - balance
                  - cardOnFile
                  - dailySearches
                  - freeGrant
                  - lastPack
                  additionalProperties: false
          headers:
            ratelimit:
              description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
              required: false
              schema:
                type: string
            ratelimit-limit:
              description: The uses the quota allows in one window.
              required: false
              schema:
                type: integer
            ratelimit-policy:
              description: The quota and its window, in the form limit;w=seconds.
              required: false
              schema:
                type: string
            ratelimit-remaining:
              description: The uses left in the current window.
              required: false
              schema:
                type: integer
            ratelimit-reset:
              description: The seconds until the window resets.
              required: false
              schema:
                type: integer
        '401':
          description: The request carries no credential where the operation needs an identified caller, or carries an API key, access token, or session that does not verify, resolves to no organization, or is a kind the operation does not accept.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedEncoded'
        '413':
          description: A JSON request body is larger than the api accepts, and `message` names the limit in bytes. The api answers before it reads the whole body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BodyTooLargeEncoded'
          headers:
            ratelimit:
              description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
              required: false
              schema:
                type: string
            ratelimit-limit:
              description: The uses the quota allows in one window.
              required: false
              schema:
                type: integer
            ratelimit-policy:
              description: The quota and its window, in the form limit;w=seconds.
              required: false
              schema:
                type: string
            ratelimit-remaining:
              description: The uses left in the current window.
              required: false
              schema:
                type: integer
            ratelimit-reset:
              description: The seconds until the window resets.
              required: false
              schema:
                type: integer
        '429':
          headers:
            ratelimit:
              description: The quota name, the remaining uses, and the seconds until the window resets, in the form "name"; r=remaining; t=reset.
              required: false
              schema:
                type: string
            ratelimit-limit:
              description: The uses the quota allows in one window.
              required: false
              schema:
                type: integer
            ratelimit-policy:
              description: The quota and its window, in the form limit;w=seconds.
              required: false
              schema:
                type: string
            ratelimit-remaining:
              description: The uses left in the current window.
              required: false
              schema:
                type: integer
            ratelimit-reset:
              description: The seconds until the window resets.
              required: false
              schema:
                type: integer
            retry-after:
              schema:
                type: string
                pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
              required: true
          description: The caller has passed a rate limit, and the `retry-after` header gives the number of seconds to wait before the next attempt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitedEncoded'
      security:
      - bearer: []
      - apiKey: []
      - session: []
      tags:
      - Billing
      operationId: billing.billingState
      parameters: []
      description: Returns the prepaid credit balance, the daily search grant, the last pack bought, and whether a card is on file. Starts no checkout and changes no payment setting.
      summary: Read billing state
components:
  schemas:
    BodyTooLargeEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
          - BodyTooLarge
        error:
          type: string
          enum:
          - body_too_large
        message:
          type: string
      required:
      - error
      - message
      additionalProperties: false
    RateLimitedEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
          - RateLimited
        error:
          type: string
          enum:
          - rate_limited
      required:
      - error
      additionalProperties: false
    UnauthorizedEncoded:
      type: object
      properties:
        _tag:
          type: string
          enum:
          - Unauthorized
        error:
          type: string
          enum:
          - unauthorized
      required:
      - error
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: Bearer
    apiKey:
      description: 'API key for a host that cannot set the Authorization header. Read only when Authorization carries no Bearer credential: a request that sends both headers is answered by the Authorization credential alone, so a key here never overrides it.'
      type: apiKey
      name: x-api-key
      in: header
    session:
      description: Clerk session token cookie of a signed-in browser on the Starcovery site. REST only; MCP rejects a session.
      type: apiKey
      name: __session
      in: cookie