{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://inquir.org/features/multi-tenant-routing#webpage","url":"https://inquir.org/features/multi-tenant-routing","name":"Multi-tenant routing for SaaS APIs","headline":"Multi-tenant routing for SaaS APIs","description":"Host-based tenants, path-based tenants, and white-label ingress for B2B APIs—normalize tenant context at the gateway so handlers stay small and logs stay readable.","inLanguage":"en-US","isPartOf":{"@id":"https://inquir.org/#website"},"author":{"@type":"Organization","name":"Inquir"},"datePublished":"2025-01-01T00:00:00.000Z","dateModified":"2026-04-20T00:00:00.000Z","citation":"https://inquir.org/docs"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://inquir.org"},{"@type":"ListItem","position":2,"name":"Features","item":"https://inquir.org/features"},{"@type":"ListItem","position":3,"name":"Multi-tenant routing","item":"https://inquir.org/features/multi-tenant-routing"}]},{"@type":"FAQPage","@id":"https://inquir.org/features/multi-tenant-routing#faq","url":"https://inquir.org/features/multi-tenant-routing","isPartOf":{"@id":"https://inquir.org/features/multi-tenant-routing#webpage"},"mainEntity":[{"@type":"Question","name":"Does multi-tenant routing replace database row-level security?","acceptedAnswer":{"@type":"Answer","text":"No—ingress routing helps avoid cross-tenant mistakes at the edge; databases still need tenant-aware policies and tests."}},{"@type":"Question","name":"Host-based vs path-based tenants—which to choose?","acceptedAnswer":{"@type":"Answer","text":"Hosts feel cleaner for white-label APIs; paths work when DNS is constrained—both can be valid if tenant context is explicit to handlers."}},{"@type":"Question","name":"How do I test tenant isolation?","acceptedAnswer":{"@type":"Answer","text":"Automate negative tests: tokens from tenant A must never succeed against tenant B routes, and logs should tag tenant IDs consistently."}}]}]}