13 Domains API: How to create a domain
This is a series of articles dedicated to demonstrating how to get get acquainted with Openprovider Domains API methods.
This is a first article in a series in which we are going to cover basic domain management operations. To get more information about our API in general, please use our documentation portal as your reference.
You must have an active Openprovider account for this command to complete successfully. Please keep in mind that you will be automatically charged the registration fee upon successful registration.
POST {base_url}/domains/
REQUEST VALUES
Name Type Description name string Required. period integer Required. auth_code varchar Optional. owner_handle varchar Required. admin_handle varchar Required. tech_handle varchar Required. billing_handle varchar Optional. reseller_handle varchar Optional. ns_group string Required only if name_servers field is empty ns_template_name string Optional. Name of the template to use to automatically create DNS zone for the domain; only applicable if nsGroup is dns-openprovider name_servers Array of objects (Array containing name server information) RequiredNB The owner, admin and tech handles can be retrieved via the customers endpoint and will be the registered contacts for this domain.
REQUEST EXAMPLE
RESPONSE EXAMPLE
RESPONSE VALUES
| Name | Type | Description |
| status | ACT - active or REQ - requested | |
| auth_code | only in case if TLD supports it | |
| activation_date | available only in case of a succeeded realtime domain registration |