AlpineDataWorks.AI Billing API

Stripe checkout, credit packs, billing portal, and status (session required)

Operations 4

GET /v1/billing/status Current plan + subscription status (session required) #
POST /v1/billing/checkout Create a Stripe Checkout Session for a paid tier (session required) #
POST /v1/billing/credits/checkout Buy a credit pack (session required); JSON returns URL, form-post redirects #
GET /v1/billing/portal Create a Stripe Billing Portal session (session required) #

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/alpinedataworks-com:alpinedataworks-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

alpinedataworks-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Alpinedataworks Com Billing API
  version: 0.3.0
  contact:
    name: AlpineDataWorks.AI
    url: https://www.alpinedataworks.com
  description: 'Operations tagged Billing across 2 of this provider''s published API definitions: alpinedataworks-com-openapi.json, alpinedataworks-com.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.alpinedataworks.com
  description: Production
- url: http://localhost:8787
  description: Local dev (wrangler dev)
security: []
tags:
- name: Billing
  description: Stripe checkout, credit packs, billing portal, and status (session required)
paths:
  /v1/billing/status:
    get:
      summary: Current plan + subscription status (session required)
      operationId: getBillingStatus
      tags:
      - Billing
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Plan + subscription status
          content:
            application/json:
              schema:
                type: object
                properties:
                  tier:
                    type: string
                    enum:
                    - Free
                    - Gold
                    - Platinum
                  subscription_status:
                    type: string
                    example: active
        '401':
          description: Session required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://api.alpinedataworks.com
      description: Production
    - url: http://localhost:8787
      description: Local dev (wrangler dev)
  /v1/billing/checkout:
    post:
      summary: Create a Stripe Checkout Session for a paid tier (session required)
      operationId: createBillingCheckout
      tags:
      - Billing
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tier
              properties:
                tier:
                  type: string
                  enum:
                  - Gold
                  - Platinum
      responses:
        '200':
          description: Checkout URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  stub:
                    type: boolean
        '400':
          description: Invalid or missing tier
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Session required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Account not active or email unverified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://api.alpinedataworks.com
      description: Production
    - url: http://localhost:8787
      description: Local dev (wrangler dev)
  /v1/billing/credits/checkout:
    post:
      summary: Buy a credit pack (session required); JSON returns URL, form-post redirects
      operationId: createCreditCheckout
      tags:
      - Billing
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - pack
              properties:
                pack:
                  type: string
                  enum:
                  - starter
                  - builder
                  - pro
                  - scale
      responses:
        '200':
          description: Checkout URL (JSON request)
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  stub:
                    type: boolean
        '302':
          description: Redirect to Stripe Checkout (form-post request)
        '400':
          description: Invalid pack
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Account not active or email unverified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://api.alpinedataworks.com
      description: Production
    - url: http://localhost:8787
      description: Local dev (wrangler dev)
  /v1/billing/portal:
    get:
      summary: Create a Stripe Billing Portal session (session required)
      operationId: getBillingPortal
      tags:
      - Billing
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Billing portal URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  stub:
                    type: boolean
        '401':
          description: Session required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Account not active or email unverified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No Stripe customer found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    servers:
    - url: https://api.alpinedataworks.com
      description: Production
    - url: http://localhost:8787
      description: Local dev (wrangler dev)
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              enum:
              - UNAUTHORIZED
              - TIER_FORBIDDEN
              - NOT_FOUND
              - BAD_REQUEST
              - RATE_LIMITED
              - INTERNAL_ERROR
            message:
              type: string
            details:
              type: object
              additionalProperties: true
            request_id:
              type: string
              example: req_a1b2c3d4
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Public demo key: adw_free_demo (Free tier). Gold/Platinum require an issued API key. Production: SHA-256 hashed keys stored in Cloudflare KV.'
x-refined-from:
- alpinedataworks-com-openapi.json
- alpinedataworks-com.json