Skip to content

Billing

Billing endpoints integrate with Stripe for subscription management.

Plans

PlanPriceEvents/moEndpointsRetention
Free$01,00017 days
Starter$29/mo100,0001030 days
Pro$99/mo1,000,0005090 days

Create Checkout Session

POST /api/v1/billing/checkout

Request Body

json
{
  "plan": "starter",
  "success_url": "https://example.com/success",
  "cancel_url": "https://example.com/cancel"
}

Response

json
{
  "url": "https://checkout.stripe.com/..."
}

Redirect the user to the Stripe checkout URL.

Customer Portal

GET /api/v1/billing/portal

Query Parameters

ParamRequiredDescription
return_urlYesURL to redirect after portal session

Response

json
{
  "url": "https://billing.stripe.com/..."
}

Redirect the user to the Stripe customer portal to manage their subscription.

Stripe Webhook

POST /api/v1/billing/webhook

Receives Stripe webhook events (e.g., checkout.session.completed, customer.subscription.updated). No authentication required — verified via Stripe webhook signature.

Note: Billing endpoints are stubs for the MVP. Full Stripe integration will be available in v1.0.

Released under the MIT License.