This is a series of articles dedicated to demonstrating how to 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↓
NB The owner, admin and tech handles can be retrieved via the customers endpoint and will be the registered contacts for this domain.
REQUEST EXAMPLE↓
curl -X POST \
'http://api.openprovider.eu/v1beta/domains' \
-H 'Accept: */*' \
-H 'Authorization: ,Bearer 2f4c1c3a9******15d22b378a64' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-d '{
"admin_handle": "XX123456-XX",
"auth_code": "2FIXQ63NCQNT",
"autorenew": "default",
"billing_handle": "XX123456-XX",
"is_dnssec_enabled": true,
"is_locked": false,
"is_private_whois_enabled": true,
"owner_handle": "XX123456-XX",
"reseller_handle": "XX123456-XX",
"reset_auth_code": "false",
"tech_handle": "XX123456-XX",
}
RESPONSE EXAMPLE↓
{
"code": 0,
"data": {
"activation_date": "2019-04-29 17:15:19",
"auth_code": "C8$#wgG#25tQ",
"expiration_date": "2020-04-29 17:15:19",
"id": 10592139,
"renewal_date": "2020-04-29 17:15:19",
"status": "ACT"
},
"desc": ""
}
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 |