Maven Widget Sessions API

The Widget Sessions API from Maven — 1 operation(s) for widget sessions.

Operations 1

POST /v1/widget-sessions Create a chat payment session #

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/trymaven-com:trymaven-com-widget-sessions-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

trymaven-com-widget-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Maven Widget Sessions API
  description: Voice payment infrastructure — collect credit card payments securely over phone calls.
  version: 1.0.0
tags:
- name: Widget Sessions
paths:
  /v1/widget-sessions:
    post:
      tags:
      - Widget Sessions
      summary: Create a chat payment session
      description: 'Create a chat/web payment session.


        Call this from your **server** with your secret API key. Hand the returned

        `session_id` to your frontend and mount the widget:

        `Maven.createPayment({ sessionId }).mount("#slot")`.


        Theme, labels, and fields are set once per project in the dashboard

        (Chat Payments tab → Customize) and applied automatically.'
      operationId: create_widget_session_v1_widget_sessions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWidgetSession'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    CreateWidgetSession:
      properties:
        project:
          type: string
          title: Project
          description: Project UUID or slug
        amount_cents:
          type: integer
          minimum: 0.0
          title: Amount Cents
          description: Charge amount in cents. For mode='tokenize' may be 0.
        gateway:
          type: string
          title: Gateway
          description: stripe | authorizenet | braintree | shift4 | fiserv | jpmorgan | webhook
        mode:
          type: string
          pattern: ^(charge|tokenize)$
          title: Mode
          default: charge
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        stripe_account:
          anyOf:
          - type: string
            pattern: ^acct_[A-Za-z0-9]+$
          - type: 'null'
          title: Stripe Account
          description: 'Stripe Platform Mode only: connected account (acct_...) on YOUR Stripe platform'
      type: object
      required:
      - project
      - amount_cents
      - gateway
      title: CreateWidgetSession
  securitySchemes:
    API_Key:
      type: http
      description: 'Enter your API key: mvn_test_xxx or mvn_live_xxx'
      scheme: bearer