DNS automation
v1.6.2
Get a web hosting package
Get a web hosting package
GET
/hosting/packages/{id}
HostingPackagesByID
Authentication
Parameters
Name
Type
Format
Required
Description
id
string
-
Required
Package id (the `id` field of a hosting package).
Request example
GET
curl --request GET \
--url 'https://api.regfish.com/hosting/packages/example' \
--header 'x-api-key: YOUR_API_KEY'Responses
200
Hosting package
Response example 200
{
"success": true,
"code": 0,
"response": {
"id": "example",
"webhost_id": 1,
"plan": "example",
"status": "example",
"active": true
}
}401
Unauthorized
Response example 401
{
"success": false,
"message": "Unauthorized",
"error": "Unauthorized"
}404
Package not found
Response example 404
{
"success": false,
"message": "Package not found",
"error": "Package not found"
}500
Unexpected error
Response example 500
{
"success": false,
"message": "Unexpected error",
"error": "Unexpected error"
}Community
Become part of the community
The regfish DNS API is a great solution for developers who want to automate domains and DNS zones. Become part of the community and benefit from DNS automation. The DNS API is available free of charge to every regfish customer.