Bind Page and API Domains
This can be confusing: the page domain is for people to view, while the API domain is for programs to call. They can belong to the same brand, but do not enter the same address for both.
| Example address | Who accesses it | What it is used for |
|---|---|---|
platform.example.com |
Customer's browser | Home page, services, docs, and console |
api.example.com |
Customer's program | Sending API requests, i.e., the Base URL |
Replace example.com in the examples with your own domain. First, confirm that the system URL opens and that you can manage DNS records for the domain.
¶ Configure both domains under “Custom Domains”
Go to Site Management → Manage → Custom Domains, first find “Page Domain”, then find “API Domain”.
Captured from the live site on September 6, 2026, with the two sections captured separately and the key area excluded. Check the section names, and do not enter the page domain's target for the API domain.
Follow the same sequence in each section:
- Enter the full domain without
https://or a path, and click “Bind Domain” in that section. - Copy the CNAME target provided by that section.
- Go to your domain provider and add a DNS record.
- Return here to refresh or verify, and wait for the domain and HTTPS status to be ready.
¶ How should the DNS records be filled in?
Suppose you manage example.com:
| Domain | Type | Host record | Record value |
|---|---|---|---|
| platform.example.com | CNAME | platform | Target provided by the page domain section |
| api.example.com | CNAME | api | Target provided by the API domain section |
The targets for the two sections may differ; use the current console as the source of truth. Do not copy historical addresses from screenshots. If an A, AAAA, or CNAME record already exists under the same name, first confirm its purpose; if unsure, choose an unused subdomain instead of directly deleting an existing service's DNS record.
DNS propagation and certificate issuance are separate steps, and no fixed completion time is promised.
¶ First check the URL for people
Open the page domain in an incognito window and check the home page, services, documentation, and customer support in order. After opening a documentation page, refresh it once to confirm it does not return a 404; then log in and confirm that you return to your domain afterward.
The title, Logo, and Favicon should also be correct. If the production domain opens the wrong site, the configuration is not successful.
¶ Then check the address for programs
After the API domain is activated, first confirm that HTTPS works properly, then check whether the Base URL in the platform's default documentation and tools has been updated.
Select your own key in the Usage and Testing area, click View Code, and check whether the example uses this API domain. You can switch APIs; confirm the cost before clicking Run. Viewing the code does not mean a call has been completed, and do not copy code containing a real Key into a public tutorial.
When actually verifying a call, use the test customer's own Key and copy a small request from the corresponding service documentation. Check whether the response is normal and whether usage and charge records appear in the customer console. Do not put Keys in screenshots, public documents, or support tickets.
It is okay if you do not know how to make a call; the next article will explain what information to provide to customers. For now, check both URLs and their statuses.
¶ What does “your own API domain” mean?
It is a branded entry point, not an independent gateway, and it does not automatically provide token isolation. Authentication and billing still use the unified system, and hiding the service catalog does not restrict the scope of calls made with a valid Key.
If you need to restrict the services available to customers, use the actual credential/API scope capabilities and verify them separately, rather than relying on the domain.
¶ How to diagnose problems
| Symptom | Check first |
|---|---|
| Page domain opens a different site | Whether the bound Site is correct; whether the wrong CNAME was used |
| HTTPS warning | Public DNS and certificate status |
| API returns 401 | Whether the Key is valid; then check the path and quota, rather than immediately assuming a DNS error |
| Default documentation still shows the public Host | Whether the API domain is activated and whether the site configuration has been refreshed |
| Your own documentation still shows the old Host | Custom Markdown does not automatically rewrite the Host; check it yourself |
Technical colleagues can first perform a read-only check without a key. For example, if an OpenAI-compatible model catalog is provided, access /v1/models on the branded API domain; receiving no_token means the request has reached the authentication stage. Then have the customer use their own Key to complete a minimal request with a budget, following the service documentation, and check the result and usage. Opening the domain's root path alone or seeing a 404 returned by another path cannot determine whether service calls are working properly. For asynchronous tasks, continue querying the original task.
After completing this article: The page domain can display documentation and allow login; HTTPS works properly on the API domain, and the default documentation address is correct. For actual calls, continue to Customer Activation and First Call. Return to the roadmap
