Assistant Billing

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..."
}
FieldTypeRequiredDescription
markup_percentagestringAlwaysMarkup on base costs (%)
platform_fee_percentagestringAlwaysPlatform fee (%)
stripe_configuredbooleanAlwaysWhether Stripe is configured
stripe_publishable_keystring?AlwaysTruncated 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

NameTypeRequiredDescription
markup_percentagenumberNoMarkup on base costs (%). Default: 0
platform_fee_percentagenumberNoPlatform 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 }