Advanced API
Our advanced API is available to perform core functions of the control panel and more programmatically. It is a powerful resource and a great alternative to managing your services through our conventional web control panel.
What is the benefit of advanced API?
Our fully-featured REST API gives you access to manage dedicated server statuses, domain DNS records and more without having to access the control panel. Companies, developers and researchers can incorporate our innovative services directly into software and services.What is the pricing for advanced API?
Advanced API is free for all users. You may use it to manage your DNS as well as domain registrations and email services.Gain easy access
or integrate into your own app
EXAMPLE
or refer to full API documentation
1
Get the domain example.com
curl -v https://api.pivo.com/v1/dns/get/example.com \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
Response-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
Responds with HTTP/1.1 200 OK if successful, returns the domain.
{
"id": 1,
"user_id": 11,
"name": "example.com",
"token": "domain-token",
"state": "complete",
"ipv4_address":174.23.124.56,
"ipv6_address": 2001:cdba::3257:9652,
"wildcard_alias": false,
"ttl": "1800",
"created_at": "2015-07-28T15:01:13",
"updated_at": "2015-09-10T13:03:15"
}
"id": 1,
"user_id": 11,
"name": "example.com",
"token": "domain-token",
"state": "complete",
"ipv4_address":174.23.124.56,
"ipv6_address": 2001:cdba::3257:9652,
"wildcard_alias": false,
"ttl": "1800",
"created_at": "2015-07-28T15:01:13",
"updated_at": "2015-09-10T13:03:15"
}
2
Add name servers for the domain
Responds with HTTP/1.1 200 OK if successful, returns the name servers.
example.com
:
curl -v https://api.pivo.com/v1/domain/name_server_add/example.com \
-d "{\"name_servers\": [\"ns6.pivo.com\",\"ns7.pivo.com\"]}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
Response-d "{\"name_servers\": [\"ns6.pivo.com\",\"ns7.pivo.com\"]}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
Responds with HTTP/1.1 200 OK if successful, returns the name servers.
{
"name servers": [
"NS1.PIVO.COM",
"NS2.PIVO.COM",
"NS3.PIVO.COM",
"NS4.PIVO.COM",
"NS5.PIVO.COM"
"NS6.PIVO.COM"
"NS7.PIVO.COM"
]
}
"name servers": [
"NS1.PIVO.COM",
"NS2.PIVO.COM",
"NS3.PIVO.COM",
"NS4.PIVO.COM",
"NS5.PIVO.COM"
"NS6.PIVO.COM"
"NS7.PIVO.COM"
]
}