Alpha Bazaar Subscriptions API

Stripe subscriptions and checkout

Operations 9

POST /api/stripe/create-checkout-session Create Checkout Session #
GET /api/stripe/verify-session/{session_id} Verify Checkout Session #
POST /api/stripe/webhook Stripe Webhook #
GET /api/subscriptions Get User Subscriptions #
GET /api/subscriptions/check/{publisher_id} Check Publisher Subscription #
POST /api/subscriptions/{subscription_id}/cancel Cancel Subscription #
GET /api/stripe/pricing/all Get All Stripe Pricing #
GET /api/stripe/test-connectivity Test Stripe Connectivity #
GET /api/stripe/payment-success Stripe Payment Success #

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/alphabazaar-ai:alphabazaar-ai-subscriptions-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

alphabazaar-ai-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Alphabazaar Ai Subscriptions API
  version: 2.2.0-socketio
  contact:
    name: Alpha Bazaar
    url: https://alphabazaar.ai/
    email: support@alphabazaar.ai
  license:
    name: Proprietary
  termsOfService: https://www.alphabazaar.ai/legal/terms
  description: 'Operations tagged Subscriptions across 2 of this provider''s published API definitions: alphabazaar-ai-openapi.yml, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://alpha-bazaar-signal-server.onrender.com
  description: Production
- url: https://dev-alpha-bazaar-signal-server.onrender.com
  description: Staging
security:
- HTTPBearer: []
tags:
- name: Subscriptions
  description: Stripe subscriptions and checkout
paths:
  /api/stripe/create-checkout-session:
    post:
      tags:
      - Subscriptions
      summary: Create Checkout Session
      description: Create a Stripe checkout session for subscription
      operationId: create_checkout_session_api_stripe_create_checkout_session_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutSessionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/stripe/verify-session/{session_id}:
    get:
      tags:
      - Subscriptions
      summary: Verify Checkout Session
      description: Verify and retrieve checkout session details
      operationId: verify_checkout_session_api_stripe_verify_session__session_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
        description: Stripe checkout session ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/stripe/webhook:
    post:
      tags:
      - Subscriptions
      summary: Stripe Webhook
      description: Handle Stripe webhook events
      operationId: stripe_webhook_api_stripe_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/subscriptions:
    get:
      tags:
      - Subscriptions
      summary: Get User Subscriptions
      description: Get all subscriptions for the current user
      operationId: get_user_subscriptions_api_subscriptions_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionsResponse'
      security:
      - HTTPBearer: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/subscriptions/check/{publisher_id}:
    get:
      tags:
      - Subscriptions
      summary: Check Publisher Subscription
      description: Check if user has an active subscription to a specific publisher
      operationId: check_publisher_subscription_api_subscriptions_check__publisher_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: publisher_id
        in: path
        required: true
        schema:
          type: string
          title: Publisher Id
        description: Publisher UUID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/subscriptions/{subscription_id}/cancel:
    post:
      tags:
      - Subscriptions
      summary: Cancel Subscription
      description: Cancel a user's subscription - supports both Stripe subscription IDs and publisher UUIDs
      operationId: cancel_subscription_api_subscriptions__subscription_id__cancel_post
      security:
      - HTTPBearer: []
      parameters:
      - name: subscription_id
        in: path
        required: true
        schema:
          type: string
          title: Subscription Id
        description: Stripe subscription ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/stripe/pricing/all:
    get:
      tags:
      - Subscriptions
      summary: Get All Stripe Pricing
      description: Get all available Stripe pricing plans (requires authentication)
      operationId: get_all_stripe_pricing_api_stripe_pricing_all_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/stripe/test-connectivity:
    get:
      tags:
      - Subscriptions
      summary: Test Stripe Connectivity
      description: Test Stripe API connectivity and return detailed status
      operationId: test_stripe_connectivity_api_stripe_test_connectivity_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
  /api/stripe/payment-success:
    get:
      tags:
      - Subscriptions
      summary: Stripe Payment Success
      description: Handle Stripe payment success and redirect to Express onboarding
      operationId: stripe_payment_success_api_stripe_payment_success_get
      security: []
      parameters:
      - name: session_id
        in: query
        required: true
        schema:
          type: string
          title: Session Id
        description: Stripe checkout session ID
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    servers:
    - url: https://alpha-bazaar-signal-server.onrender.com
      description: Production
    - url: https://dev-alpha-bazaar-signal-server.onrender.com
      description: Staging
components:
  schemas:
    SubscriptionItem:
      properties:
        id:
          type: string
          title: Id
        status:
          type: string
          title: Status
        current_period_start:
          anyOf:
          - type: integer
          - type: 'null'
          title: Current Period Start
        current_period_end:
          anyOf:
          - type: integer
          - type: 'null'
          title: Current Period End
        cancel_at_period_end:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Cancel At Period End
        plan_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Id
        plan_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Name
        amount:
          anyOf:
          - type: integer
          - type: 'null'
          title: Amount
        currency:
          anyOf:
          - type: string
          - type: 'null'
          title: Currency
      type: object
      required:
      - id
      - status
      title: SubscriptionItem
    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
    CheckoutSessionRequest:
      properties:
        plan_id:
          type: string
          title: Plan Id
        success_url:
          type: string
          title: Success Url
        cancel_url:
          type: string
          title: Cancel Url
      type: object
      required:
      - plan_id
      - success_url
      - cancel_url
      title: CheckoutSessionRequest
    SubscriptionsResponse:
      properties:
        status:
          type: string
          title: Status
        subscriptions:
          items:
            $ref: '#/components/schemas/SubscriptionItem'
          type: array
          title: Subscriptions
      type: object
      required:
      - status
      - subscriptions
      title: SubscriptionsResponse
      description: GET /api/subscriptions
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
externalDocs:
  description: Agent integration guide and full API docs
  url: https://www.alphabazaar.ai/llms-full.txt
x-refined-from:
- alphabazaar-ai-openapi.yml
- openapi.json