Contacts
Get contacts
Section titled “Get contacts”Namecheap: domains.getContacts
GET /domains/:domain/contactsResponse 200
{ "data": { "domain": "example.com", "registrant": { "firstName": "John", "lastName": "Doe", "address1": "123 Main St", "city": "Anytown", "stateProvince": "CA", "postalCode": "90210", "country": "US", "phone": "+1.5551234567", "emailAddress": "john@example.com" }, "tech": { "..." }, "admin": { "..." }, "auxBilling": { "..." } }}Set contacts
Section titled “Set contacts”All four contact types are required.
Namecheap: domains.setContacts
POST /domains/:domain/contacts{ "registrant": { "firstName": "John", "lastName": "Doe", "address1": "123 Main St", "city": "Anytown", "stateProvince": "CA", "postalCode": "90210", "country": "US", "phone": "+1.5551234567", "emailAddress": "john@example.com" }, "tech": { "...same fields..." }, "admin": { "...same fields..." }, "auxBilling": { "...same fields..." }}Contact fields:
| Field | Type | Required |
|---|---|---|
firstName | string | yes |
lastName | string | yes |
address1 | string | yes |
address2 | string | no |
city | string | yes |
stateProvince | string | yes |
postalCode | string | yes |
country | string (2-letter) | yes |
phone | string (+CC.NUMBER) | yes |
emailAddress | string | yes |
organizationName | string | no |
jobTitle | string | no |
phoneExt | string | no |
fax | string | no |
Response 200
{ "data": { "domain": "example.com", "isSuccess": true }}