Pentonym Billing API

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

GitHub OpenAPI

Operations 2

POST /v1/billing/checkout Create Checkout #
POST /v1/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/pentonym-com:pentonym-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. 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

pentonym-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pentonym Billing API
  description: Brand-name clearance screening. Not legal advice.
  version: 0.1.0
security:
- BearerApiKey: []
- InstallToken: []
- {}
tags:
- name: Billing
paths:
  /v1/billing/checkout:
    post:
      summary: Create Checkout
      description: 'Open a Stripe Checkout session for `sku`, bound to the caller''s `pk_` key.


        503 when billing is not configured (`STRIPE_SECRET_KEY` unset). 400 for an

        unknown/unconfigured SKU. The response `url` is the hosted Stripe page; the

        server-minted `checkout_token` in the session metadata is what the webhook

        later trusts to credit the right key.'
      operationId: create_checkout_v1_billing_checkout_post
      parameters:
      - name: Authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Create Checkout V1 Billing Checkout Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
  /v1/billing/webhook:
    post:
      summary: Stripe Webhook
      description: 'Receive a Stripe webhook. The signature is verified with

        `stripe.Webhook.construct_event`; only a VERIFIED event is ever acted on, and

        even then the credit target comes from the server-minted token, not the

        payload. Idempotent on the Stripe event id.


        Returns 400 on a missing/failed signature (NEVER credits), 200 otherwise

        (including idempotent duplicates), per Stripe''s retry contract.'
      operationId: stripe_webhook_v1_billing_webhook_post
      parameters:
      - name: Stripe-Signature
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Stripe-Signature
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Stripe Webhook V1 Billing Webhook Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Billing
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckoutRequest:
      properties:
        sku:
          type: string
          maxLength: 64
          minLength: 1
          title: Sku
        success_url:
          anyOf:
          - type: string
            maxLength: 2048
          - type: 'null'
          title: Success Url
        cancel_url:
          anyOf:
          - type: string
            maxLength: 2048
          - type: 'null'
          title: Cancel Url
      additionalProperties: false
      type: object
      required:
      - sku
      title: CheckoutRequest
      description: '`extra="forbid"` so a legacy client that tries to stamp `api_key_hash` /

        `email` / any credit target into the body is REJECTED (422) rather than

        silently ignored — the credit anchor is resolved server-side only.'
    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
  securitySchemes:
    BearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: pk_...
      description: 'Account API key from POST /v1/connect, sent as `Authorization: Bearer pk_…`.'
    InstallToken:
      type: apiKey
      in: header
      name: X-Pentonym-Install
      description: Opaque per-install token for the anonymous free tier (MCP clients / the web app).