This article describes the WAPI commands for working with domain contacts (the domain’s owner, administrative and technical contacts). WAPI setup, authentication and troubleshooting are covered in WAPI – Manual. Domain commands are described in WAPI – Domains, and the full list of codes is in WAPI – Return Codes.
The article covers contacts for these TLDs:
and the following commands:
- contact-check – check whether a contact name is available
- contact-info – contact information
- contact-create – create a contact
- contact-update – update a contact
- contact-transfer – transfer a contact from another registrar
- contact-send-auth-info – send the contact’s AUTH-ID
General information
- Parameter and item names in JSON (
cname,contact,email…) must be used exactly as shown in this article. - Common codes: any command can return 2100 (required parameter missing) and 2101 (invalid parameter value). They are not repeated for each command.
- reg_key = registry identifier (optional, e.g.
cznic). All commands in this article accept it. You usually do not need it; the registry is determined by the TLD. - Phone and fax format:
+420 123456789– a plus sign, the international dialling code, a space and the number without other separators. Any other format returns 2227 (phone) or 2229 (fax). - Test mode: a request with
"test": 1validates the input parameters and changes nothing.
Domain Contacts by Individual Registries
Each registry manages contacts differently. Rules for contact names, required items and which items can be changed differ.
The company name, first name and last name (company, fname, lname) can usually be set only when the contact is created, because registries treat changing them as a change of owner. Details for individual registries are below.
CZ Domains
When creating a contact for a CZ domain, you can choose its name. Use contact-check to verify that the name is free (not used, not blocked, etc.).
The contact name can only contain uppercase letters of the English alphabet, digits and hyphens. If you do not enter a name, the system generates one.
In the contact details, you can set:
- cname – contact name (only when creating; omit it or leave it empty to have a name generated)
- company – company name
- fname – first name – required
- lname – last name – required
- email – email – required
- phone – phone in the format +XXX XXXXXXXXX
- fax – fax in the format +XXX XXXXXXXXX
- dic – VAT ID
- addr_street – street and number – required
- addr_city – city – required
- addr_zip – postal code – required
- addr_country – country (two-letter ISO code) – required
- addr_state – state or region
- ident_type – identification type:
ico(company ID),op(ID card),birthday(date of birth in the format DD.MM.YYYY),passport,mpsv(MPSV card) - ident – identification number according to
ident_type - notify_email – notification email
- disclose_phone – hide the phone
- disclose_fax – hide the fax
- disclose_email – hide the email
- disclose_ident – hide the identification
- disclose_notify_email – hide the notification email
Some details of CZ contacts can be hidden. The disclose_* items take the value 1 (hidden) or 0 (public). A hidden detail is shown only with the AUTH-ID.
For CZ contacts, you can also set a mailing address. When creating or updating the contact, enter:
- del_addr=1 – the mailing address is active (required)
- del_addr_street1 – street (required)
- del_addr_street2 – street (optional)
- del_addr_street3 – street (optional)
- del_addr_city – city (required)
- del_addr_state – state or region
- del_addr_country – country (two-letter ISO code) (required)
To remove the mailing address, enter del_addr=0 when updating the contact.
EU Domains
You cannot choose the contact name in the EURid registry; the system always assigns it.
In the contact details, you can set:
- company – company name
- fname – first name – required
- lname – last name – required
- email – email – required
- phone – phone in the format +XXX XXXXXXXXX
- fax – fax in the format +XXX XXXXXXXXX
- dic – VAT ID
- addr_street – street and number – required
- addr_city – city – required
- addr_zip – postal code – required
- addr_country – country (two-letter ISO code) – required
- addr_state – state or region
SK Domains
When creating a contact for an SK domain, you can choose its name. Use contact-check to verify that the name is free (not used, not blocked, etc.).
The contact name can only contain uppercase letters of the English alphabet, digits, hyphens and dots, and must be 5 to 16 characters long. If you do not enter a name, the system generates one in the format WEDOS-XXX-YYYY (XXX are letters and digits, YYYY are digits).
In the contact details, you can set:
- cname – contact name (only when creating; omit it or leave it empty to have a name generated)
- company – company name
- fname – first name – required
- lname – last name – required
- email – email – required
- phone – phone in the format +XXX XXXXXXXXX
- fax – fax in the format +XXX XXXXXXXXX
- dic – VAT ID
- addr_street – street and number – required
- addr_city – city – required
- addr_zip – postal code – required
- addr_country – country (two-letter ISO code) – required
- addr_state – state or region
- ident_type – entity type, can be set only once:
PERS= individual,CORP= company - ident – identification: for
PERSthe date of birth in the format YYYY-MM-DD, forCORPthe company ID - disclose_name – hide the name
- disclose_org – hide the company name
- disclose_addr – hide the address
- disclose_phone – hide the phone
- disclose_fax – hide the fax
- disclose_email – hide the email
PL Domains
You cannot choose the name of a PL contact; the system always assigns it.
In the contact details, you can set:
- company – company name
- fname – first name – required; cannot be changed when
legal_type=individual - lname – last name – required; cannot be changed when
legal_type=individual - email – email – required
- phone – phone in the format +XXX XXXXXXXXX
- fax – fax in the format +XXX XXXXXXXXX
- dic – VAT ID
- addr_street – street and number – required
- addr_city – city – required
- addr_zip – postal code – required
- addr_country – country (two-letter ISO code) – required
- addr_state – state or region
- legal_type – legal form:
companyorindividual; cannot be changed – required
gTLD and nTLD Domains
You cannot choose the contact name for gTLD and nTLD domains; the system always assigns it.
In the contact details, you can set:
- company – company name
- fname – first name – required
- lname – last name – required
- email – email – required
- phone – phone in the format +XXX XXXXXXXXX
- fax – fax in the format +XXX XXXXXXXXX
- dic – VAT ID
- addr_street – street and number – required
- addr_city – city – required
- addr_zip – postal code – required
- addr_country – country (two-letter ISO code) – required
- addr_state – state or region
contact-check
Use contact-check to verify that a contact name is free and can be used for a new contact.
Parameters
- tld = TLD for which you are creating the contact, e.g.
cz(required) - cname = contact name (required)
Return codes
- 1000 = the name is free and can be used
- 2201 = invalid TLD
- 2216 = invalid contact name format
- 2218 = the contact name is assigned automatically for this TLD
- 3228 = the TLD does not support contacts
- 3231 = the contact already exists
- 3232 = the contact cannot be used (unknown reason)
- 3233 = the contact cannot be used
- 3234 = the contact cannot be used – quarantine
- 3235 = the contact cannot be used – reserved
- 3236 = the contact cannot be used – blocked
- 3237 = the contact is already registered with WEDOS
- 4211 = the check failed – communication error, try again later
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-check",
"clTRID": "your request id",
"data": {
"tld": "cz",
"cname": "MY-CONTACT"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-check"
}
}
contact-info
Use contact-info to get the contact’s details.
For CZ domains, a contact can have hidden details. Anyone can call contact-info for any existing contact, but hidden details are shown only with a valid AUTH-ID. The system remembers who created the contact or entered a valid AUTH-ID, and shows the hidden details to that account’s later requests without the AUTH-ID.
Parameters
- tld = TLD (required)
- cname = contact name (required)
- auth_info = the contact’s AUTH-ID (optional). If the registry supports it, hidden contact details are shown as well.
Return codes
- 1000 = OK
- 2201 = invalid TLD
- 2216 = invalid contact name format
- 3215 = invalid AUTH-ID (the given
auth_infodoes not match the contact’s AUTH-ID) - 3228 = the TLD does not support contacts
- 3229 = contact not found or not available
- 3236 = the contact is blocked
- 4212 = the contact is not available – connection error, try again later
- 5001 = internal authentication error
Response data
- contact = contact details. The items depend on the registry; the example below is for a CZ contact.
Templates
JSON request (CZ contact):
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-info",
"clTRID": "your request id",
"data": {
"tld": "cz",
"cname": "MY-CONTACT",
"auth_info": "contact AUTH-ID (optional)"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-info",
"data": {
"contact": {
"contact_id": "MY-CONTACT",
"status": "contact status",
"name": "first and last name",
"company": "company name",
"addr_street": "street and number",
"addr_city": "city",
"addr_zip": "postal code",
"addr_state": "state or region",
"addr_country": "ISO country code",
"phone": "phone",
"email": "email",
"fax": "fax",
"reg_owner": "current registrar",
"reg_creator": "registrar that created the contact",
"reg_update": "registrar of the last change",
"created_date": "YYYY-MM-DD hh:mm:ss",
"updated_date": "YYYY-MM-DD hh:mm:ss",
"transfer_date": "YYYY-MM-DD hh:mm:ss",
"fname": "first name",
"lname": "last name",
"email2": "backup email",
"ic": "company ID",
"dic": "VAT ID",
"taxpayer": "VAT payer (0/1)",
"disclose": "hidden details setting",
"other": {
"notify_email": "notification email",
"ident_type": "identification type",
"ident": "identification number"
}
}
}
}
}
JSON response (contact not found):
{
"response": {
"code": 3229,
"result": "Contact is not available",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-info"
}
}
contact-create
Use contact-create to create a new contact that you can then use for your domains in that registry. Each contact has a unique name. The rules of individual registries are described in Domain Contacts by Individual Registries.
Parameters
- tld = TLD (required)
- contact = contact details (required):
- cname – contact name (empty = generate automatically; some registries do not allow choosing it)
- fname – first name
- lname – last name
- company – company name
- addr_street – street and number
- addr_city – city
- addr_zip – postal code
- addr_state – state or region
- addr_country – country (two-letter ISO code)
- phone – phone
- fax – fax
- email – email
- email2 – backup email
- ic – company ID
- dic – VAT ID
- taxpayer – VAT payer (0/1)
- other items depending on the registry
The items in contact must be simple values (not arrays); otherwise the command returns 2101.
Return codes
- 1000 = contact created
- 2201 = invalid TLD
- 2216 = invalid contact name
- 2218 = the contact name is assigned automatically for this TLD
- 2219 = company name missing
- 2220 = first name missing
- 2221 = last name missing
- 2222 = email missing
- 2223 = invalid or non-existent email
- 2224 = email2 missing
- 2225 = invalid or non-existent email2
- 2226 = phone missing
- 2227 = invalid phone format
- 2228 = fax missing
- 2229 = invalid fax format
- 2230 = company ID missing
- 2231 = invalid company ID format
- 2232 = VAT ID missing
- 2233 = invalid VAT ID format
- 2234 = street missing
- 2235 = city missing
- 2236 = postal code missing
- 2237 = country missing
- 2238 = invalid country format
- 2239 = state or region missing
- 2240 = item missing in other details
- 2241 = invalid item format in other details
- 2242 = an item contains characters that are not allowed
- 2253 = invalid postal code format
- 2254–2261 = an item contains non-ASCII characters (only for registries that do not allow them)
- 2270 = invalid hidden details setting
- 3228 = the TLD does not support contacts
- 3230 = contact creation failed
- 3231 = the contact name is already used
- 3232 = the contact cannot be used (unknown reason)
- 3233 = the contact cannot be used
- 3234 = the contact cannot be used – quarantine
- 3235 = the contact cannot be used – reserved
- 3236 = the contact cannot be used – blocked, or it contains a blocked detail
- 3237 = the contact is already registered with WEDOS
- 4211 = contact check failed – communication error
- 4213 = contact creation failed – communication error
Response data
- cname = name of the created contact
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-create",
"clTRID": "your request id",
"data": {
"tld": "cz",
"contact": {
"cname": "MY-CONTACT",
"fname": "John",
"lname": "Smith",
"email": "john@domain.cz",
"addr_street": "Main Street 1",
"addr_city": "Prague",
"addr_zip": "11000",
"addr_country": "cz",
"phone": "+420 123456789",
"notify_email": "notify@domain.cz"
}
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-create",
"data": {
"cname": "MY-CONTACT"
}
}
}
contact-update
Use contact-update to update a contact’s details.
Always send all contact details, not only the ones you are changing. Details that the registry does not allow to change (usually company, fname, lname) are ignored. The rules of individual registries are described in Domain Contacts by Individual Registries.
You must authorize the change with the contact’s AUTH-ID (auth_info) if you are not yet authorized for the contact. You become authorized by creating the contact through WEDOS or by the first successful use of the AUTH-ID; after that you do not need to send auth_info.
Parameters
- tld = TLD (required)
- cname = contact name (required)
- auth_info = the contact’s AUTH-ID (optional; needed only if you are not authorized for the contact)
- contact = contact details (required), the same items as in contact-create except
cname
Return codes
- 1000 = OK
- 2201 = invalid TLD
- 2216 = invalid contact name
- 2219–2241 = missing or invalid contact details (the same codes as in contact-create)
- 2242 = an item contains characters that are not allowed
- 2253 = invalid postal code format
- 2270 = invalid hidden details setting
- 3228 = the TLD does not support contacts
- 3229 = contact not found or not available
- 3236 = the contact is blocked, or it contains a blocked detail
- 3238 = authorization error (not authorized or invalid AUTH-ID)
- 3239 = contact update failed
- 4212 = the contact is not available – connection error, try again later
- 4215 = update failed – connection error, try again later
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-update",
"clTRID": "your request id",
"data": {
"tld": "cz",
"cname": "MY-CONTACT",
"auth_info": "contact AUTH-ID (optional)",
"contact": {
"fname": "John",
"lname": "Smith",
"email": "new@domain.cz",
"addr_street": "Main Street 1",
"addr_city": "Prague",
"addr_zip": "11000",
"addr_country": "cz",
"phone": "+420 123456789",
"notify_email": "notify@domain.cz"
}
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-update"
}
}
contact-transfer
Use contact-transfer to transfer a contact from another registrar to WEDOS.
Only contacts of CZ domains can be transferred.
Parameters
- tld = TLD (required)
- cname = contact name (required)
- auth_info = the contact’s AUTH-ID (required; without it the command returns 2215)
Return codes
- 1000 = OK
- 2201 = invalid TLD
- 2215 = auth_info missing
- 2216 = invalid contact name
- 2244 = contact transfer is not supported for this TLD
- 3229 = the contact is not available
- 3237 = the contact is already registered with WEDOS
- 3240 = authorization error
- 3241 = transfer failed
- 4216 = transfer failed – connection error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-transfer",
"clTRID": "your request id",
"data": {
"tld": "cz",
"cname": "MY-CONTACT",
"auth_info": "contact AUTH-ID"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-transfer"
}
}
contact-send-auth-info
Use contact-send-auth-info to send the contact’s AUTH-ID to the contact’s email.
Parameters
- tld = TLD (required)
- cname = contact name (required)
Return codes
- 1000 = OK
- 2201 = invalid TLD
- 2216 = invalid contact name
- 2243 = sending the AUTH-ID is not allowed for this contact
- 3213 = sending failed – the contact is not available
- 3215 = sending the AUTH-ID failed
- 3228 = the TLD does not support contacts
- 4217 = sending failed – communication error
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "contact-send-auth-info",
"clTRID": "your request id",
"data": {
"tld": "cz",
"cname": "MY-CONTACT"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "contact-send-auth-info"
}
}