Skip to main content
Mock API Builder
Enterprise

Custom Domains & mTLS

Route mock traffic through your own hostname instead of the default app URL.

Setup via Project Settings

Open Project Settings → Integrations → Custom domains. Add your domain, then add the DNS TXT record shown in the UI and click Verify.

# Or via API
curl -X POST https://www.mockapibuilder.io/api/projects/YOUR_PROJECT_ID/domains \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{"domain":"mock-api.example.com","mtlsEnabled":false}'
mTLS

Enable mTLS on a domain to require client certificates. Terminate TLS and validate certificates at your load balancer or reverse proxy, then forward the client cert in headers such as x-client-cert.

Production mTLS is typically configured at the edge (nginx, ALB, Cloudflare). Mock API Builder checks that a cert header is present when mTLS is enabled for the domain.

See also Project Integrations and the ops runbook in docs/operations/PRODUCTION_OPS.md for deployment DNS.

Previous: Webhooks & EventsNext: Enterprise SSO
Mock API Builder

Built for developers, by developers

DocumentationContactPrivacy PolicyTerms of Service

© 2026 Mock API Builder. All rights reserved.

Double-click for what's new
Learning Center
Learning Center