Step 2: Add Domains Using APIs

book
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:

  1. Agreements API
    1. The Resources Apply Request to apply configuration files stored in a GitHub repository.
    2. For example:
      1. This repository can be applied to create a new domain.
      2. This repository can be applied to create a new domain, and update a site such that it is connected to that newdomain.
  2. Configuration API
    1. The Create and Update endpoints can be used to create a domain object, and update your site object to point to that domain object. Refer to the Fleet Management Postman collection.