{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://inquir.org/#organization","name":"Inquir","url":"https://inquir.org","logo":{"@type":"ImageObject","url":"https://inquir.org/favicon.png","width":256,"height":256}},{"@type":"WebSite","@id":"https://inquir.org/#website","name":"Inquir Compute","url":"https://inquir.org","inLanguage":["en","ru"],"publisher":{"@id":"https://inquir.org/#organization"}},{"@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"},"breadcrumb":{"@id":"https://inquir.org/features/multi-tenant-routing#breadcrumb"},"author":{"@id":"https://inquir.org/#organization"},"datePublished":"2025-11-01T00:00:00.000Z","dateModified":"2026-06-23T00:00:00.000Z","citation":{"@type":"CreativeWork","url":"https://inquir.org/docs"}},{"@type":"BreadcrumbList","@id":"https://inquir.org/features/multi-tenant-routing#breadcrumb","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":"TechArticle","@id":"https://inquir.org/features/multi-tenant-routing#article","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.","image":"https://inquir.org/opengraph-image.png","inLanguage":"en-US","author":{"@id":"https://inquir.org/#organization"},"publisher":{"@id":"https://inquir.org/#organization"},"datePublished":"2025-11-01T00:00:00.000Z","dateModified":"2026-06-23T00:00:00.000Z","isPartOf":{"@id":"https://inquir.org/features/multi-tenant-routing#webpage"}},{"@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."}}]}]}