Use a custom domain
You can serve your docs from your own domain instead of yourname.docs.specway.com. Custom domains are available on paid plans (Solo and up).
You will need access to the DNS settings for your domain, or someone who has it.
Enter your domain
Go to API Docs > Settings > Domain. In Custom Domain, enter the domain, for example docs.yourcompany.com, and click Set Domain.
Add the TXT record
Under Step 1: Add this TXT record to verify ownership, Specway shows a TXT record. Its host is _specway-verify followed by your domain, and its value starts with specway-verify-. Add it at your DNS provider exactly as shown.
Add the routing record
Under Step 2: Add this CNAME/A record to route traffic, add the record shown:
- For a subdomain such as
docs.yourcompany.com: a CNAME record pointing tocname.vercel-dns.com. - For a root domain such as
yourcompany.com: an A record on@pointing to76.76.21.21.
Verify
Click Verify Domain. When the TXT record is found, the badge changes from Pending verification to Verified. If you see "Domain not yet verified. Check your DNS.", wait a while and try again.
Your docs start loading on the custom domain once it is verified and the routing record is in place. DNS changes can take up to 48 hours to spread.
If someone else manages your DNS, click Send to developer. It opens an email with the records filled in.
Check the record name
Some DNS providers want only the part before your root domain in the name field. For docs.yourcompany.com, the CNAME name is docs and the TXT name is _specway-verify.docs. If your domain has more levels, such as api.docs.yourcompany.com, use everything before the root domain (api.docs).
Remove the domain
In Settings > Domain, click the X next to the domain name. Your docs stay available at your docs.specway.com address.