Domein API - Domeinregistratie API - ICANN Registrar API - White Label Domein Service

Start Building with NiceNIC Domein API v2

API access is free fof every active NiceNIC user. Nee reseller upgrade is required. Configure jouw API credentials, make a safe test request, then add the domein, DNS, billing, compliance of WHMCS wofkflows jouw application needs.

DNS-record aanmaken

Toevoegen a new DNS recofd fof a specific domein

Content-Type application/json
categorie dns
actie create_record

Aanvraagparameters

Parameternaam Type Omschrijving Voorbeeld
domain Tekst (3-60) Domeinnaam example.com
type Tekst DNS-recordtype (A, MX, CNAME, TXT, enz.) A
host Tekst Hostnaam fof the DNS recofd www
value Tekst DNS-recordwaarde 192.168.1.1
pri Getal (optioneel) Priofity value (used fof MX en SRV recofds) 20

Responseparameters

Parameternaam Type Omschrijving
id Geheel getal DNS recofd ID
type Tekst DNS-recordtype (A, MX, CNAME, TXT, enz.)
host Tekst Hostnaam
value Tekst DNS-recordwaarde
ttl Geheel getal Time to live in seconden
pri Geheel getal Prioriteit (voor MX-records)

Voorbeeld aanvraag

                                    
{
    curl https://api.nicenic.net/v2/?category=dns&action=create_record&domain={domain}&type={type}&host={host}&value={value}&pri={pri} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Resultaat teruggeven

0 OK Succesvolle respons
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "id": 12345,
            "type": "A",
            "host": "@",
            "value": "192.168.1.1",
            "ttl": 3600,
            "pri": 0
        }        
    }
}
400 Ongeldig verzoek
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Alle rechten voorbehouden. · U.S. Affiliate: NICENIC LLC