SpecProof Billing API

The Billing API from SpecProof — 6 operation(s) for billing.

GitHub OpenAPI

Operations 6

GET /billing/summary Billing Summary #
POST /billing/checkout Create Checkout #
POST /billing/change-plan Change Plan #
POST /billing/portal Create Billing Portal #
POST /billing/cancel Cancel Subscription #
POST /billing/webhook Stripe Webhook #

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/specproof-ai:specproof-ai-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

specproof-ai-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpecProof Portal Billing API
  version: 1.0.0
tags:
- name: Billing
paths:
  /billing/summary:
    get:
      summary: Billing Summary
      operationId: billing_summary_billing_summary_get
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/checkout:
    post:
      summary: Create Checkout
      operationId: create_checkout_billing_checkout_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/change-plan:
    post:
      summary: Change Plan
      operationId: change_plan_billing_change_plan_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangePlanRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangePlanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/portal:
    post:
      summary: Create Billing Portal
      operationId: create_billing_portal_billing_portal_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/cancel:
    post:
      summary: Cancel Subscription
      description: Cancel the current subscription and revert to trial.
      operationId: cancel_subscription_billing_cancel_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /billing/webhook:
    post:
      summary: Stripe Webhook
      operationId: stripe_webhook_billing_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Billing
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckoutRequest:
      properties:
        plan:
          type: string
          title: Plan
          default: pro
      type: object
      title: CheckoutRequest
    InvoiceOut:
      properties:
        invoice_id:
          type: string
          title: Invoice Id
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        amount_due:
          anyOf:
          - type: integer
          - type: 'null'
          title: Amount Due
        amount_paid:
          anyOf:
          - type: integer
          - type: 'null'
          title: Amount Paid
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
        hosted_invoice_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Hosted Invoice Url
        pdf_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Pdf Url
        period_start:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Period Start
        period_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Period End
      type: object
      required:
      - invoice_id
      title: InvoiceOut
    ChangePlanRequest:
      properties:
        new_plan:
          type: string
          title: New Plan
      type: object
      required:
      - new_plan
      title: ChangePlanRequest
    ChangePlanResponse:
      properties:
        success:
          type: boolean
          title: Success
        previous_plan:
          anyOf:
          - type: string
          - type: 'null'
          title: Previous Plan
        new_plan:
          anyOf:
          - type: string
          - type: 'null'
          title: New Plan
        prorated_amount:
          anyOf:
          - type: integer
          - type: 'null'
          title: Prorated Amount
        effective_date:
          anyOf:
          - type: string
          - type: 'null'
          title: Effective Date
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
      type: object
      required:
      - success
      title: ChangePlanResponse
    BillingSummary:
      properties:
        plan:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        organization_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Organization Name
        payment_provider:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Provider
        invoices:
          items:
            $ref: '#/components/schemas/InvoiceOut'
          type: array
          title: Invoices
          default: []
      type: object
      title: BillingSummary