Create WHOIS profile
Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
Create WHOIS contact profile.
Use this endpoint to add new contact information for domain registration.
Authorizations
AuthorizationstringRequired
API Token authentication
Body
tldstringRequiredExample:
TLD of the domain (without leading dot)
comcountrystringRequiredExample:
ISO 3166 2-letter country code
NLentity_typestring · enumRequiredExample:
Legal entity type
individualPossible values: tld_detailsobjectOptional
TLD details
whois_detailsobjectRequired
WHOIS details
Responses
200
Success response
application/json
idintegerOptionalExample:
WHOIS Profile ID
746263tldstringOptionalExample:
TLD to which contact profile can be applied to
comcountrystringOptionalExample:
ISO 3166 2-letter country code
NLentity_typestring · enumOptionalExample:
WHOIS profile entity type
individualPossible values: whois_detailsobjectOptionalExample:
WHOIS profile details
{"first_name":"John","last_name":"Doe","email":"john@doe.tld"}tld_detailsobjectOptional
TLD details
created_atstring · date-timeOptionalExample:
2025-02-27T11:54:22Zupdated_atstring · date-timeOptionalExample:
2025-03-19T11:54:22Z401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
post/api/domains/v1/whois
POST /api/domains/v1/whois HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"tld": "com",
"country": "NL",
"entity_type": "individual",
"tld_details": {},
"whois_details": {}
}{
"id": 746263,
"tld": "com",
"country": "NL",
"entity_type": "individual",
"whois_details": {
"first_name": "John",
"last_name": "Doe",
"email": "john@doe.tld"
},
"tld_details": {},
"created_at": "2025-02-27T11:54:22Z",
"updated_at": "2025-03-19T11:54:22Z"
}Last updated
Was this helpful?