ctlsurf Billing API

The billing API from ctlsurf — 5 operation(s) for billing.

GitHub OpenAPI

Operations 5

GET /api/billing/status Get Billing Status #
POST /api/billing/checkout Create Checkout #
POST /api/billing/portal Create Portal #
POST /api/billing/webhook Stripe Webhook #
GET /api/billing/admin/config Get Stripe Config #

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/ctlsurf-com:ctlsurf-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

ctlsurf-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Billing API
  version: 0.1.0
  description: 'Operations tagged billing across 2 of this provider''s published API definitions: ctlsurf-com-openapi.json, ctlsurf-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.ctlsurf.com
  description: ctlsurf application host (documented MCP endpoint https://app.ctlsurf.com/api/mcp; spec served at /openapi.json)
tags:
- name: Billing
paths:
  /api/billing/status:
    get:
      tags:
      - Billing
      summary: Get Billing Status
      description: Get billing status for the current user.
      operationId: get_billing_status_api_billing_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingStatusResponse'
      security:
      - HTTPBearer: []
  /api/billing/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout
      description: Create a Stripe Checkout session for upgrading to Pro.
      operationId: create_checkout_api_billing_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/billing/portal:
    post:
      tags:
      - Billing
      summary: Create Portal
      description: Create a Stripe Customer Portal session for managing subscription.
      operationId: create_portal_api_billing_portal_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PortalRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/billing/webhook:
    post:
      tags:
      - Billing
      summary: Stripe Webhook
      description: Handle Stripe webhook events.
      operationId: stripe_webhook_api_billing_webhook_post
      parameters:
      - name: Stripe-Signature
        in: header
        required: false
        schema:
          type: string
          title: Stripe-Signature
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/billing/admin/config:
    get:
      tags:
      - Billing
      summary: Get Stripe Config
      description: Get Stripe configuration status (admin only).
      operationId: get_stripe_config_api_billing_admin_config_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
components:
  schemas:
    BillingStatusResponse:
      properties:
        stripe_enabled:
          type: boolean
          title: Stripe Enabled
        publishable_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Publishable Key
        current_tier:
          type: string
          title: Current Tier
        has_subscription:
          type: boolean
          title: Has Subscription
        subscription_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Status
        subscription_ends_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Subscription Ends At
        can_manage_subscription:
          type: boolean
          title: Can Manage Subscription
      type: object
      required:
      - stripe_enabled
      - current_tier
      - has_subscription
      - can_manage_subscription
      title: BillingStatusResponse
      description: Response for billing status check.
    PortalRequest:
      properties:
        return_url:
          type: string
          title: Return Url
      type: object
      required:
      - return_url
      title: PortalRequest
      description: Request to create a customer portal session.
    PortalResponse:
      properties:
        portal_url:
          type: string
          title: Portal Url
      type: object
      required:
      - portal_url
      title: PortalResponse
      description: Response with portal URL.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckoutResponse:
      properties:
        checkout_url:
          type: string
          title: Checkout Url
        session_id:
          type: string
          title: Session Id
      type: object
      required:
      - checkout_url
      - session_id
      title: CheckoutResponse
      description: Response with checkout URL.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CheckoutRequest:
      properties:
        success_url:
          type: string
          title: Success Url
        cancel_url:
          type: string
          title: Cancel Url
      type: object
      required:
      - success_url
      - cancel_url
      title: CheckoutRequest
      description: Request to create a checkout session.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml