


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)















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.
