sketchxflow-com Team Billing API

The team-billing API from sketchxflow-com — 10 operation(s) for team-billing.

Operations 10

GET /api/teams/{team_id}/billing Get Team Billing #
POST /api/teams/{team_id}/billing/checkout Create Team Checkout #
POST /api/teams/{team_id}/billing/seats Update Team Seats #
POST /api/teams/{team_id}/billing/change-plan Change Team Plan #
POST /api/teams/{team_id}/billing/cancel Cancel Team Subscription #
POST /api/teams/{team_id}/billing/portal Team Billing Portal #
GET /api/teams/{team_id}/billing/usage Get Team Usage #
POST /api/teams/{team_id}/members/{member_id}/cap Set Member Cap Endpoint #
POST /api/teams/{team_id}/billing/topup Team Topup Checkout #
GET /api/teams/{team_id}/billing/usage/export Export Team Usage #

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/sketchxflow-com:sketchxflow-com-team-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

sketchxflow-com-team-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SketchXFlow Team Billing API
  version: 0.1.0
tags:
- name: team-billing
paths:
  /api/teams/{team_id}/billing:
    get:
      tags:
      - team-billing
      summary: Get Team Billing
      description: Team billing status (any member can view).
      operationId: get_team_billing_api_teams__team_id__billing_get
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/checkout:
    post:
      tags:
      - team-billing
      summary: Create Team Checkout
      description: Start a seat-based team subscription checkout. Owner/admin only.
      operationId: create_team_checkout_api_teams__team_id__billing_checkout_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamCheckoutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/seats:
    post:
      tags:
      - team-billing
      summary: Update Team Seats
      description: 'Change the team''s seat count. Owner/admin only. Can''t drop below the

        current member count.'
      operationId: update_team_seats_api_teams__team_id__billing_seats_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSeatsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/change-plan:
    post:
      tags:
      - team-billing
      summary: Change Team Plan
      description: Change the team's plan (and optionally seats). Owner/admin only.
      operationId: change_team_plan_api_teams__team_id__billing_change_plan_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangeTeamPlanRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/cancel:
    post:
      tags:
      - team-billing
      summary: Cancel Team Subscription
      description: Cancel the team subscription at period end. Owner only.
      operationId: cancel_team_subscription_api_teams__team_id__billing_cancel_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/portal:
    post:
      tags:
      - team-billing
      summary: Team Billing Portal
      description: Open the Dodo customer portal for the team's billing. Owner/admin only.
      operationId: team_billing_portal_api_teams__team_id__billing_portal_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/usage:
    get:
      tags:
      - team-billing
      summary: Get Team Usage
      description: Team coins (seats + shared pool) and per-member usage (any member can view).
      operationId: get_team_usage_api_teams__team_id__billing_usage_get
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/members/{member_id}/cap:
    post:
      tags:
      - team-billing
      summary: Set Member Cap Endpoint
      description: Set or clear a member's per-cycle spend cap against the pool. Admin only.
      operationId: set_member_cap_endpoint_api_teams__team_id__members__member_id__cap_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      - name: member_id
        in: path
        required: true
        schema:
          type: string
          title: Member Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetMemberCapRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/topup:
    post:
      tags:
      - team-billing
      summary: Team Topup Checkout
      description: Buy a coin pack into the shared team pool. Owner/admin only.
      operationId: team_topup_checkout_api_teams__team_id__billing_topup_post
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamTopupRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/{team_id}/billing/usage/export:
    get:
      tags:
      - team-billing
      summary: Export Team Usage
      description: Download per-member pool usage for the current cycle as CSV. Admin only.
      operationId: export_team_usage_api_teams__team_id__billing_usage_export_get
      parameters:
      - name: team_id
        in: path
        required: true
        schema:
          type: string
          title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SetMemberCapRequest:
      properties:
        cap:
          anyOf:
          - type: integer
          - type: 'null'
          title: Cap
      type: object
      title: SetMemberCapRequest
    ChangeTeamPlanRequest:
      properties:
        plan_id:
          type: string
          title: Plan Id
        seat_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Seat Count
      type: object
      required:
      - plan_id
      title: ChangeTeamPlanRequest
    TeamTopupRequest:
      properties:
        pack_id:
          type: string
          title: Pack Id
      type: object
      required:
      - pack_id
      title: TeamTopupRequest
    TeamCheckoutRequest:
      properties:
        plan_id:
          type: string
          title: Plan Id
        seat_count:
          type: integer
          title: Seat Count
        interval:
          type: string
          title: Interval
          default: month
      type: object
      required:
      - plan_id
      - seat_count
      title: TeamCheckoutRequest
    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
    UpdateSeatsRequest:
      properties:
        seat_count:
          type: integer
          title: Seat Count
      type: object
      required:
      - seat_count
      title: UpdateSeatsRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError