Contact Details
Get Contact Details
GET /domains/{domain}/contact
Gets contact details for a domain.
Authentication uses the required username and token headers.
Path variable:
domain: domain name, for exampleexample.test.ly
curl --request GET \
--url "https://my.register.ly/modules/addons/DomainsReseller/api/index.php/domains/example.test.ly/contact" \
--header "token: <generated-token>"
HTTP 200 success response:
{
"Registrant": {
"Contact_Name": "John Smith",
"Company_Name": "My Company",
"Address_1": "Street No. 1",
"Address_2": "Building No. 2",
"City": "Tripoli",
"State": "TR",
"ZIP_code": "218",
"Country": "LY",
"Phone": "0912223333",
},
"Admin": {
"Contact_Name": "",
"Company_Name": "",
"Address_1": "",
"Address_2": "",
"City": "",
"State": "",
"ZIP_code": "",
"Country": "",
"Phone": "",
"Email": ""
},
"Tech": {
"Contact_Name": "",
"Company_Name": "",
"Address_1": "",
"Address_2": "",
"City": "",
"State": "",
"ZIP_code": "",
"Country": "",
"Phone": "",
"Email": ""
},
"Billing": {
"Contact_Name": "",
"Company_Name": "",
"Address_1": "",
"Address_2": "",
"City": "",
"State": "",
"ZIP_code": "",
"Country": "",
"Phone": "",
"Email": ""
}
}
Save Contact Details
POST /domains/{domain}/contact
VALIDATION REQUIRED: Confirm whether the contact update endpoint supports only the
Registrantcontact or alsoAdmin,Tech, andBillingcontacts.
The published update shape uses uppercase Registrant in contactdetails[Registrant][...]. This differs from registration, which uses lowercase contacts[registrant][...]. Preserve the documented casing; do not normalize these field names.
Path variable:
domain: domain name, for exampleexample.test.ly
Request parameters:
contactdetails[Registrant][Contact_Name]: contact name, for exampleJohn Smithcontactdetails[Registrant][Company_Name]: company name, for exampleMy Companycontactdetails[Registrant][Address_1]: address line 1, for exampleStreet No. 3contactdetails[Registrant][Address_2]: address line 2, for exampleBuilding No. 4contactdetails[Registrant][City]: city, for exampleTripolicontactdetails[Registrant][State]: state, for exampleTRcontactdetails[Registrant][ZIP_code]: ZIP or postcode, for example218contactdetails[Registrant][Country]: two-letter country code, for exampleLYorUScontactdetails[Registrant][Phone]: phone number, for example0912223333contactdetails[Registrant][Email]: email address, for example[email protected]
Complete Update Request
curl --request POST \
--url "https://my.register.ly/modules/addons/DomainsReseller/api/index.php/domains/example.test.ly/contact" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "token: <generated-token>" \
--data-urlencode "contactdetails[Registrant][Contact_Name]=John Smith" \
--data-urlencode "contactdetails[Registrant][Company_Name]=Example Company" \
--data-urlencode "contactdetails[Registrant][Address_1]=1 Example Street" \
--data-urlencode "contactdetails[Registrant][Address_2]=" \
--data-urlencode "contactdetails[Registrant][City]=Tripoli" \
--data-urlencode "contactdetails[Registrant][State]=TR" \
--data-urlencode "contactdetails[Registrant][ZIP_code]=00000" \
--data-urlencode "contactdetails[Registrant][Country]=LY" \
--data-urlencode "contactdetails[Registrant][Phone]=+218000000000" \
HTTP 200 success response:
{
"status": "success",
"message": "",
"success": "success"
}
Notes
VALIDATION REQUIRED: Required contact-update fields and format validation.
Contact updates can affect domain ownership and transfer processes. Do not log personal contact data or retry an update blindly after an ambiguous failure.