Renta Docs

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/settings

Returns 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/settings

Update 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 null is stored as null, which clears it (an older stored spelling of the same setting is cleared too).
  • colors and fonts are merged one level down: only the colours or fonts you include change.
  • widget_config is also merged one level down. button_text is trimmed and cut to 80 characters (an empty one is ignored), show_item_descriptions must be one of hidden, preview, expandable or always, 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 example logoURL instead of logo_url), when colors holds anything but hex colours or fonts anything but a plain CSS font stack, or when logo_url, favicon_url, hero_image_url or an admin_appearance.background.images entry is not an https:// URL or a data:image/* URI. An empty logo_url, favicon_url or hero_image_url clears it.
  • "brand_settings": null removes every brand key except the ones Renta manages.

Body Parameters:

ParameterTypeRequiredDescription
namestring—Business display name
brand_settingsobject—Branding configuration (colors, logo, etc.)
emailstring—Contact email
phonestring—Contact phone number
address_line1string—Street address line 1
address_line2string—Street address line 2
citystring—City
statestring—State / province
zipstring—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
}
Settings API | Renta Docs