Agent C Billing API

The billing API from Agent C — 7 operation(s) for billing.

GitHub OpenAPI

Operations 7

GET /v1/billing/plans List Plans #
POST /v1/billing/checkout Create Checkout Session #
POST /v1/billing/portal Create Portal Session #
POST /v1/billing/webhook Stripe Webhook #
GET /v1/billing/subscription Get Subscription #
GET /v1/billing/invoices List Invoices #
POST /v1/billing/credit-pack Purchase Credit Pack #

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/theagentc-io:theagentc-io-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

theagentc-io-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agent C Billing API
  description: AI COO platform — Jarvis Jr. manages your social media content.
  version: 0.1.0
tags:
- name: Billing
paths:
  /v1/billing/plans:
    get:
      tags:
      - Billing
      summary: List Plans
      description: 'Public endpoint — returns available plans for the choose-plan page.

        No auth required so the paywall page can render plans.'
      operationId: list_plans_v1_billing_plans_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response List Plans V1 Billing Plans Get
  /v1/billing/checkout:
    post:
      tags:
      - Billing
      summary: Create Checkout Session
      description: 'Create a Stripe Checkout session for plan subscription.


        Args:

        plan: One of "builder", "studio", "builder_founder", "studio_founder",

        "builder_annual", "studio_annual"


        Returns:

        - session_id: Stripe session ID for checkout

        - url: URL to redirect user to for checkout

        - plan: Plan tier selected

        - price_cents: Price in cents'
      operationId: create_checkout_session_v1_billing_checkout_post
      security:
      - HTTPBearer: []
      parameters:
      - name: plan
        in: query
        required: true
        schema:
          type: string
          title: Plan
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Create Checkout Session V1 Billing Checkout Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/portal:
    post:
      tags:
      - Billing
      summary: Create Portal Session
      description: 'Create a Stripe Customer Portal session for plan management.


        Users can view/modify their subscription, update payment method, view invoices, etc.


        Returns:

        - url: URL to redirect user to the Customer Portal'
      operationId: create_portal_session_v1_billing_portal_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Create Portal Session V1 Billing Portal Post
      security:
      - HTTPBearer: []
  /v1/billing/webhook:
    post:
      tags:
      - Billing
      summary: Stripe Webhook
      description: 'Handle Stripe webhook events.


        IMPORTANT: This endpoint does NOT require authentication.

        Instead, we verify the webhook signature using Stripe''s signing secret.


        Handles events:

        - checkout.session.completed: User completed checkout, activate subscription

        - customer.subscription.updated: Subscription details changed

        - customer.subscription.deleted: Subscription cancelled

        - invoice.paid: Invoice payment succeeded'
      operationId: stripe_webhook_v1_billing_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Stripe Webhook V1 Billing Webhook Post
  /v1/billing/subscription:
    get:
      tags:
      - Billing
      summary: Get Subscription
      description: 'Get current subscription details for the workspace.


        Returns:

        - plan: Current plan tier

        - status: Subscription status (active, past_due, cancelled, etc.)

        - stripe_customer_id: Stripe customer ID

        - stripe_subscription_id: Stripe subscription ID

        - credits_total: Total credits allocated to this plan

        - credits_remaining: Credits remaining

        - video_cap: Video limit per month

        - video_used: Videos used this month

        - strategy_sessions: Strategy sessions included

        - renewal_date: Next renewal date (if active)'
      operationId: get_subscription_v1_billing_subscription_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Get Subscription V1 Billing Subscription Get
      security:
      - HTTPBearer: []
  /v1/billing/invoices:
    get:
      tags:
      - Billing
      summary: List Invoices
      description: Real Stripe invoice history for the workspace's customer.
      operationId: list_invoices_v1_billing_invoices_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response List Invoices V1 Billing Invoices Get
      security:
      - HTTPBearer: []
  /v1/billing/credit-pack:
    post:
      tags:
      - Billing
      summary: Purchase Credit Pack
      description: 'RETIRED — always 410. Credit packs are no longer sold (pay-per-set $9.99

        unlocks + the Studio subscription replaced them). Existing pack payments are

        still honoured by the webhook (handle_credit_pack_completed); credit columns

        and ledger data are untouched.'
      operationId: purchase_credit_pack_v1_billing_credit_pack_post
      security:
      - HTTPBearer: []
      parameters:
      - name: pack
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Pack
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Purchase Credit Pack V1 Billing Credit Pack Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
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
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer