Developer
API GUIDE

Update domain settings

Change redirects, slug rules, tracking, privacy, deep links and export behavior by domain id.

1. Find the domain id

Call GET /api/domains or copy the id shown in the dashboard domain menu.

curl --request GET 'https://api.shortfreeurl.com/api/domains' \
  --header "Authorization: Bearer $SHORTFREEURL_API_KEY"

2. Send only the fields you want to change

curl --request POST 'https://api.shortfreeurl.com/api/domains/settings/42' \
  --header "Authorization: Bearer $SHORTFREEURL_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "root_redirect": "https://example.com",
  "redirect_404": "https://example.com/not-found",
  "https_level": "upgrade_hsts",
  "slug_rule": "random8",
  "robots_policy": "noindex",
  "timezone": "Asia/Calcutta"
}'

Supported setting groups

GroupFieldsPlan note
Redirectsroot_redirect, redirect_404, https_level, redirect_type, subpath_rulesCore fields included
Slugsslug_rule, case_sensitive, reserved_slugs, enable_aiIncluded
Appearance & QRtheme, favicon, default_qr, powered_byBrand removal from Starter
Statisticshide_visitor_ip, ip_exclusions, bot_filter_level, timezonePrivacy controls from Starter
Trackingintegration_ga, meta_pixel, webhook_url and server conversion fieldsVaries by destination
Deep linksdeep_linksBusiness
Robots & destinationsrobots_policy, robots_mode, allowed_hosts, blocked_hostsStarter / Growth
Warehouseexport_enabled, export_bucketScale
Partial updateOmitted fields keep their existing value. A response can include upgradeRequired if the plan rejected a gated field.