Settings API
Read and update tenant-level settings — branding, contact info, and custom configuration.
The Settings API lets you read and update your tenant's configuration, including business name, brand settings, contact information, and address.
All settings endpoints require a secret key (renta_sk_). Publishable keys will receive a 403 Forbidden error.
Get Settings
GET /v1/settingsReturns the business profile, brand settings and the shop's operational settings.
site_settings contains only these keys (each one only when the shop has saved it): timezone, currency, tax_rate, rental_day_count_rule, admin_default_rental_payment_schedule, coupon_stacking, pending_bookings_hold_inventory, deposit_hold_timing, deposit_hold_duration, deposit_expiry_behavior, refund_delay_minutes, overdue_return_notice, payments_3ds, staff_can_override_price, allow_overnight_default, staff_can_override_availability, sms_preferences, pickup_checklist_template, waiver_policy_cancel_partial_refund_hours, waiver_policy_cleaning_fee, waiver_policy_max_cleaning_fee, waiver_policy_late_fee, waiver_policy_deposit_method, waiver_policy_excess_mileage_fee. Custom code, analytics tags and other internal configuration are never returned.
const settings = await renta.settings.get();
console.log(settings.name);
console.log(settings.site_settings);curl https://api.getrenta.io/v1/settings \
-H "Authorization: Bearer renta_sk_live_..."Response:
{
"name": "Mountain Bike Rentals",
"brand_settings": {
"primary_color": "#2563eb",
"logo_url": "https://storage.getrenta.io/..."
},
"email": "info@mtbrentals.com",
"phone": "+1-555-0100",
"address_line1": "123 Trail Road",
"address_line2": "Suite 4",
"city": "Moab",
"state": "UT",
"zip": "84532",
"business_website_url": "https://mtbrentals.com",
"site_settings": {
"timezone": "America/Denver",
"currency": "usd"
}
}Update Settings
PUT /v1/settingsUpdate tenant settings. Only the fields you include will be changed.
brand_settings is merged into the stored brand settings, key by key:
- Brand keys you leave out keep their stored values, so
"brand_settings": {}changes nothing. - A key you include replaces its stored value as a whole, including nested objects and arrays. A key sent as
nullis stored asnull, which clears it (an older stored spelling of the same setting is cleared too). colorsandfontsare merged one level down: only the colours or fonts you include change.widget_configis also merged one level down.button_textis trimmed and cut to 80 characters (an empty one is ignored),show_item_descriptionsmust be one ofhidden,preview,expandableoralways, and other fields are ignored.- Keys Renta manages (such as the Stripe account status) cannot be changed and are ignored.
- The request is refused with
400 validation_error(and nothing is saved) when a key is a near-miss of a brand key nothing reads (for examplelogoURLinstead oflogo_url), whencolorsholds anything but hex colours orfontsanything but a plain CSS font stack, or whenlogo_url,favicon_url,hero_image_urlor anadmin_appearance.background.imagesentry is not anhttps://URL or adata:image/*URI. An emptylogo_url,favicon_urlorhero_image_urlclears it. "brand_settings": nullremoves every brand key except the ones Renta manages.
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | — | Business display name |
brand_settings | object | — | Branding configuration (colors, logo, etc.) |
email | string | — | Contact email |
phone | string | — | Contact phone number |
address_line1 | string | — | Street address line 1 |
address_line2 | string | — | Street address line 2 |
city | string | — | City |
state | string | — | State / province |
zip | string | — | ZIP / postal code |
await renta.settings.update({
name: 'Mountain Bike Rentals LLC',
phone: '+1-555-0200',
});curl -X PUT https://api.getrenta.io/v1/settings \
-H "Authorization: Bearer renta_sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Mountain Bike Rentals LLC",
"phone": "+1-555-0200"
}'Response:
{
"success": true
}