Lev

Lev Billing API

The Billing API from Lev — 2 operation(s) for billing.

Operations 2

GET /api/external/v2/billing/summary Get subscription metadata and credit balance for the active account #
GET /api/external/v2/billing/credits/balance Get the credit balance for the active account #

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/lev-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

lev-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lev Account & Team Billing API
  version: 2026-03
  description: Build on Lev with AI-friendly API docs, agent guides, and production integration recipes.
servers:
- url: https://api.lev.com
  description: Production API
tags:
- name: Billing
paths:
  /api/external/v2/billing/summary:
    get:
      operationId: getBillingSummary
      summary: Get subscription metadata and credit balance for the active account
      description: 'Get subscription metadata and credit balance for the active account


        Docs page: https://www.lev.com/docs/build/billing'
      tags:
      - Billing
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  data:
                    $ref: '#/components/schemas/BillingSummary'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: 'Missing required scope: billing:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
      security:
      - bearerAuth: []
      x-lev-docs-page: https://www.lev.com/docs/build/billing
      x-lev-headers:
      - 'Authorization: Bearer <token>'
      - 'X-Origin-App: <client-name>'
  /api/external/v2/billing/credits/balance:
    get:
      operationId: getBillingCreditsBalance
      summary: Get the credit balance for the active account
      description: 'Get the credit balance for the active account


        Docs page: https://www.lev.com/docs/build/billing'
      tags:
      - Billing
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                  timestamp:
                    type: string
                    format: date-time
                  data:
                    $ref: '#/components/schemas/Credits'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: 'Missing required scope: billing:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
      security:
      - bearerAuth: []
      x-lev-docs-page: https://www.lev.com/docs/build/billing
      x-lev-headers:
      - 'Authorization: Bearer <token>'
      - 'X-Origin-App: <client-name>'
components:
  schemas:
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
    Credits:
      type: object
      properties:
        enabled:
          type: boolean
        balance:
          type: integer
          nullable: true
        unit:
          type: string
    ApiErrorEnvelope:
      type: object
      properties:
        request_id:
          type: string
        error:
          $ref: '#/components/schemas/ApiError'
    Subscription:
      type: object
      properties:
        type:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        billing_cycle:
          type: string
          nullable: true
        end_date:
          type: string
          nullable: true
    BillingSummary:
      type: object
      properties:
        subscription:
          $ref: '#/components/schemas/Subscription'
        credits:
          $ref: '#/components/schemas/Credits'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or JWT