Get Nameserver
Get Nameserver
Endpoint: /api/reseller/domain/get-nameserver
Method: POST
Request Parameters
Parameters | Type | Description |
---|---|---|
username | string | |
api_key | string | |
domain | string | |
testmode | string (on, off) |
Response Parameters
Parameters | Type | Description |
---|---|---|
success | boolean (true, false) | |
message | string | |
errors | array | It will only be returned if success is false |
data | array | It will only be returned when success is true |
Example Request
{
"username" : "test@navicosoft.com",
"api_key" : "^H^HHGTG******)((",
"domain" : "domain.com"
}
Example Response
Success
If is true then the domain information is available and if it is false then it is domain information not found
{
"success": true,
"message": "Domain info fetched",
"data": {
"nameserver": "[\\"ns1.navicosoft.com\\",\\"ns2.navicosoft.com\\"]"
}
}
Response code 200
Errors
{
"success": false,
"message": "The given data is invalid.",
"errors": [
"Domain name is required"
]
}
Response code 422