Dashboard
APICreate Plan API Endpoint - POST /plans | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Create Project Plan - Add New Subscription Tiers via API

Add a new subscription tier to your project. Define the plan name, price, currency, and billing duration to offer members different membership options. You can also configure whether the plan supports recurring payments, one-time purchases, or both.

POST/v2/projects/{project_id}/plans

Authorization

Bearer TokenRequired

Path Parameters

project_idstringrequired

The unique identifier of the project.

Request Body

plan_namestringrequired

Display name of the plan.

plan_pricestringrequired

Price amount for the plan as a string (e.g., '10', '29.99').

plan_currencystringrequired

Three-letter currency code (e.g., USD, EUR).

plan_durationstringrequired

Duration of the plan (e.g., '1 hour', '1 day', '1 month').

plan_price_formattedstringrequired

Formatted price display string (e.g., '$10.00').

plan_dataobject

Additional plan configuration options.

plan_data.plan_recurringboolean

Whether the plan supports recurring payments.

plan_data.plan_one_timeboolean

Whether the plan supports one-time payments.

Last updated: