Get Registrar Domain Info

Fetching Registrar-Level Info: Fetching details directly from the upstream registrar via an synchronous HTTP call. This returns verified technical details like dynamic registrar status codes (ClientHold, ClientTransferProhibited, etc.), physical lock statuses, and real-time nameserver configurations, totally bypassing the local database cache.

Endpoint: GET /{id}/info

Parameters:

  • id (required, URL parameter): The local ID of the domain. Used to identify the domain mapping to external APIs.

Example Request:

curl -X GET "https://umva.net/api/domain/123/info" 
  -H "X-API-Key: your_api_key_here"

Success Response Example (HTTP 200):

{
  "success": true,
  "data": {
    "domain": "example.com",
    "registrar_info": {
      "DomainName": "example.com",
      "Status": "clientTransferProhibited",
      "RegistrationDate": "1697068800000",
      "ExpirationDate": "1728691200000",
      "NameServers": ["ns1.hosting.com", "ns2.hosting.com"]
    },
    "local_info": {
      "id": 123,
      "status": 1,
      "reg_date": "2023-10-12",
      "expiry_date": "2024-10-12",
      "auto_renew": false,
      "registrar_lock": true,
      "id_protection": false,
      "nameservers": {
        "ns1": "ns1.hosting.com",
        "ns2": "ns2.hosting.com",
        "ns3": null,
        "ns4": null
      }
    }
  }
}

Error Response Example (HTTP 500):

{
  "success": false,
  "message": "Failed to retrieve domain info: External API error"
}