


1response = requests.post('https://sandbox.opusdns.com/v1/domains',
2 headers={
3 'Content-Type': 'application/json',
4 'X-API-Key': 'opk_YOUR_API_KEY'
5 },
6 json={
7 'name': 'example.com',
8 'contacts': {
9 'registrant': 'contact_YOUR_CONTACT_ID',
10 'admin': 'contact_YOUR_CONTACT_ID',
11 'tech': 'contact_YOUR_CONTACT_ID',
12 'billing': 'contact_YOUR_CONTACT_ID'
13 },
14 'renewal_mode': 'renew',
15 'period': {
16 'value': 1,
17 'unit': 'y'
18 },
19 'nameservers': [
20 {'hostname': 'ns1.opusdns.com'},
21 {'hostname': 'ns2.opusdns.net'}
22 ],
23 'create_zone': True
24 }
25)1response = requests.post('https://api.opusdns.com/v1/domains',
2 headers={
3 'Content-Type': 'application/json',
4 'X-API-Key': 'opk_YOUR_API_KEY'
5 },
6 json={
7 'name': 'example.com',
8 'contacts': {
9 'registrant': 'contact_YOUR_CONTACT_ID',
10 'admin': 'contact_YOUR_CONTACT_ID',
11 'tech': 'contact_YOUR_CONTACT_ID',
12 'billing': 'contact_YOUR_CONTACT_ID'
13 },
14 'renewal_mode': 'renew',
15 'period': {
16 'value': 1,
17 'unit': 'y'
18 },
19 'nameservers': [
20 {'hostname': 'ns1.opusdns.com'},
21 {'hostname': 'ns2.opusdns.net'}
22 ],
23 'create_zone': True
24 }
25)















Create and activate an OpusDNS account, in our simple and fast sign up.
Go to your Developer-Settings in your Dashboard, generate your API key and get started immediately.
Register, transfer and manage your domains with us via the API, including DNS management and many more functions.
Test our API in a safe, isolated environment and make sure your integration with the OpusDNS API works smoothly from the start. In the OpusDNS sandbox you can register and transfer domains, manage DNS zones, and explore additional features at no cost and without impacting your existing domain portfolio.
Just follow the steps in our API documentation to get your sandbox up and running in a few minutes.
