This page shows you how to run multiple independent APIs on your own custom
domain (for example, `example.com`).

## Before you begin

To use a custom domain, follow the instructions in
[Verifying a domain name](https://docs.cloud.google.com/endpoints/docs/openapi/verify-domain-name.md.txt).
During that process, you must confirm ownership of the domain. This confirmation
lets you deploy and service APIs on any of its subdomains.

For example, if domain ownership is established for `example.com`, service names
can include subdomains of `example.com` such as `api.example.com` or
`catalog.api.example.com`.

## Deploying an API on a subdomain

The following example deploys the API to the subdomain `first_api.example.com`:

1. Set the `host` field of your OpenAPI document to `first_api.example.com`
   and set the other fields as described in
   [Configuring Cloud Endpoints](https://docs.cloud.google.com/endpoints/docs/openapi/configure-endpoints.md.txt).

2. [Deploy the Endpoints configuration](https://docs.cloud.google.com/endpoints/docs/openapi/deploy-endpoints-config.md.txt).

3. [Deploy the API backend](https://docs.cloud.google.com/endpoints/docs/openapi/deploy-api-backend.md.txt).

Now you can send requests to `first_api.example.com` and view graphs of those
requests on the
[**Endpoints** \> **Services** page](https://console.cloud.google.com/endpoints).

## Deploying your next API

To deploy another API, repeat the preceding steps, changing the subdomain
`first_api.example.com` to the subdomain you are using for the next API.