Settings
Read and update project configuration.
Auth: Platform key (sk_pj_*) required.
Get Settings
GET /v1/platform/settings
Returns current project settings including pricing configuration.
const settings = await billing.project.getInfo()Response
{
"markup_percentage": "10.00",
"platform_fee_percentage": "5.00",
"stripe_configured": true,
"stripe_publishable_key": "pk_live_abcd..."
}| Field | Type | Required | Description |
|---|---|---|---|
markup_percentage | string | Always | Markup on base costs (%) |
platform_fee_percentage | string | Always | Platform fee (%) |
stripe_configured | boolean | Always | Whether Stripe is configured |
stripe_publishable_key | string? | Always | Truncated Stripe publishable key, or null |
Update Settings
PUT /v1/platform/settings
Update project pricing configuration. All fields are optional — only include what you want to change.
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
markup_percentage | number | No | Markup on base costs (%). Default: 0 |
platform_fee_percentage | number | No | Platform fee (%). Default: 5 |
curl -X PUT https://api.assistant-billing.dev/v1/platform/settings \
-H "Authorization: Bearer sk_pj_live_abc123" \
-H "Content-Type: application/json" \
-d '{"markup_percentage": 15, "platform_fee_percentage": 5}'Response
{ "success": true }