Postman users with public documentation have the capability to publish documentation on their own custom domain.
From the Postman web view, go to the edit view of the Team tab.
There is a section to add custom domains. Add a custom domain by entering the name and hitting the “+” button. Your custom domain can be a full domain or simply a subdomain. For example, you can use either
api.example.com as your custom domain.
Adding a custom domain will open a modal displaying DNS records required to verify domain ownership. The most important pieces of information in the modal below are the TXT and CNAME records. In order to verify that you control the domain you are attempting to add, Postman requires that you add these provided tokens as DNS records to your domain.
In this case, verify ownership with the DNS web service provider. In a separate browser tab, go to the DNS provider’s console and add two new records.
postman-echo.comwhich verifies the ownership of the domain. The value should be the same as the token shown in the modal. The TXT record should be added to the root domain. So regardless of whether you’re adding
api.example.com, the TXT record should be added to
docs.postman-echo.com, the value for which should be
phs.getpostman.comas shown in the modal. The CNAME record should be added to the URL which will be associated with your public documentation.
After adding the records in the DNS provider’s console, return to the Postman web view. Check the box confirming that the TXT and CNAME records have been added, and then hit Verify Domain. A green message will confirm that the custom domain has been verified.
Sometimes, it takes time for your DNS settings to take effect, in which case, you’ll see the error message below. This is not a big deal, and you can just try again after some time.
You can also choose to verify your domain control later by clicking the Verify Later button in the modal. If you need to access this modal again in order to view the token, or to re-attempt verification, you can click the Verify Now link below the custom domain listing.
After the domain is verified, you can use this domain to publicly serve your API documentation. If you have a demo Collection that you would like to publish, head over to the Postman web view and publish your collection. There is now a new option to select a custom domain.
After publishing, head over to your custom domain, and see the public documentation in all its glory!