Skip to content
KomashiKomashi

Developer overview

Connect Komashi to your application, website or AI assistant. You can use the integration methods together: for example, embed a subscription widget, receive subscription changes through webhooks, and read usage from the REST API.

You want to…UseStart here
Read and manage customers, subscriptions, invoices and usage from your backendREST API with a provider API keyREST API integration
Let an AI assistant work with your connected businessesMCP with an OAuth 2.1 user connectionMCP integration
Add a ready-made service selection or subscription interface to your websiteEmbeddable widgetsEmbed widgets
Receive notifications when selected records changeOutgoing webhooksWebhooks
Measure visits and customer journeysGoogle Analytics, Microsoft Clarity or PostHogAnalytics & tracking

Use Komashi documentation through Context7

Section titled “Use Komashi documentation through Context7”

Komashi is also available in Context7. If your coding assistant has Context7 connected, add the relevant source to your task so it can retrieve Komashi documentation while helping you build an integration:

For example, give your assistant this instruction:

Use Context7 to read the Komashi documentation and OpenAPI reference:
https://context7.com/llmstxt/komashi_llms-full_txt
https://context7.com/openapi/komashi_api-docs_spec
Use these sources to help me integrate Komashi into my application.
Check the documented endpoints and required fields before writing code.

Context7 supplies documentation context. To read or change your account’s actual data, connect through the REST API or MCP with the appropriate authentication.

Open the provider’s Control Center. The sidebar’s Integration group contains API, Webhooks, Widgets and Analytics.

Control Center with the Integration navigation and API Keys page

The provider you have selected determines which keys, webhooks, widget examples and analytics settings you see. Switch to the correct business before configuring an integration.

MCP is an account connection: open your account Settings → MCP to review active connections. It authenticates you as a user and lets you select one of your linked providers. It does not use the provider API keys shown on the API page.

ConceptWhat it represents
ProviderThe business whose data you manage.
ServiceA product or service sold by that business.
PlanA package within a service.
PeriodThe billing interval or fixed term associated with a plan.
Add-on and optionAn extra feature, variant or usage allowance.
Customer and contactThe billing customer and its contact people.
SubscriptionAn individual subscribed item with its own status and dates.
Subscription groupRelated subscription items created through the same checkout. A group ID and subscription ID are different identifiers.
UsageThe consumption recorded against an individual subscription.

Discover IDs through API responses or MCP tools. Names, storefront slugs and identifiers are not interchangeable.

  1. Configure the service, plans, billing periods and prices in Komashi.
  2. Choose how the customer will interact with it: your own frontend, a widget or the Komashi storefront.
  3. For a backend integration, create a separate API key and make a read-only request first. For an AI assistant, complete the MCP connection instead.
  4. Read the existing catalog before creating customer or subscription records. Use the returned IDs.
  5. For a payable subscription flow, send the customer to the returned checkout URL. Determine subscription access from Komashi’s subscription state rather than a browser return URL alone.
  6. Add webhooks for the events your system needs, and reconcile important records through the API.
  7. Configure analytics if you need visitor measurement; it serves a different purpose from operational webhooks.

Keep provider API keys on your backend. A widget embed contains public configuration such as a service ID and does not require an API key in the browser.

A subscription website: embed the Service Picker and let Komashi display the configured plans. Handle any business-specific access rules in your application and use API lookups or webhooks to keep them current.

An existing SaaS application: use the REST API to connect your customer records, create subscription checkout flows and record usage. sync-usage sets an absolute total; adjust-usage applies an increase or decrease.

An AI-assisted workflow: connect through https://mcp.komashi.com/, choose the business, and ask the assistant to inspect the catalog, manage records or prepare setup drafts. Review the proposed changes before approving actions.

Continue with REST API, MCP, widgets or webhooks.