Skip to main content

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 example example.test.ly
Get contact details
curl --request GET \
--url "https://my.register.ly/modules/addons/DomainsReseller/api/index.php/domains/example.test.ly/contact" \
--header "username: [email protected]" \
--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",
"Email": "[email protected]"
},
"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 Registrant contact or also Admin, Tech, and Billing contacts.

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 example example.test.ly

Request parameters:

  • contactdetails[Registrant][Contact_Name]: contact name, for example John Smith
  • contactdetails[Registrant][Company_Name]: company name, for example My Company
  • contactdetails[Registrant][Address_1]: address line 1, for example Street No. 3
  • contactdetails[Registrant][Address_2]: address line 2, for example Building No. 4
  • contactdetails[Registrant][City]: city, for example Tripoli
  • contactdetails[Registrant][State]: state, for example TR
  • contactdetails[Registrant][ZIP_code]: ZIP or postcode, for example 218
  • contactdetails[Registrant][Country]: two-letter country code, for example LY or US
  • contactdetails[Registrant][Phone]: phone number, for example 0912223333
  • contactdetails[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 "username: [email protected]" \
--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" \
--data-urlencode "contactdetails[Registrant][Email][email protected]"

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.