Step 2: Add Domains Using APIs
Note
This step walks through how to add a domain via API using the legacy Domains architecture. For steps on how to add domains via the API using the new Domains architecture, see the
Domain Configuration
reference doc and
Domains API
.
If you are a reseller adding domains across multiple sub-accounts under the same parent account, you can do this through our APIs as well.
To do this, you can either use the:
- Agreements API
- The Resources Apply Request to apply configuration files stored in a GitHub repository.
- For example:
- This
repository
can be applied to create a new
domain
. - This
repository
can be applied to create a new
domain
, and update asite
such that it is connected to that newdomain
.
- This
repository
can be applied to create a new
- Configuration API
<% elem.innerText %>