RegisterDomain:
This command is used to send a Register command to the registrar.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
regperiod | Number | Yes | Registration period |
nameserver1 | String | No | First nameserver |
nameserver2 | String | No | Second nameserver |
nameserver3 | String | No | Third nameserver |
nameserver4 | String | No | Fourth nameserver |
nameserver5 | String | No | Fifth nameserver |
dnsmanagement | Number | No | Enables dns management for this domain |
emailforwarding | Number | No | Enables email forwarding for this domain |
idprotection | Number | No | Enables id protection for this domain |
firstname | String | Yes | First name of the user |
lastname | String | Yes | Last name of the user |
address1 | String | Yes | First part of user address |
address2 | String | No | Second part of user address |
city | String | Yes | City of the user |
state | String | Yes | State/Province of the user |
postcode | String | Yes | Postal/ZIP Code of the user |
country | String | Yes | Country of the user |
phonenumber | String | Yes | Phone number in the format +NNN.NNNNNNNNNN |
String | Yes | Email address of the user |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=RegisterDomain&sld=exampledomain&tld=ly®period=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&[email protected]' --compressed
Example Response:
{"result":"success","msg":"Domain has been registered"}
TransferDomain
This command is used to send a Transfer command to the registrar.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
transfersecret | String | No | Domain authorization code |
regperiod | Number | Yes | Registration period |
nameserver1 | String | No | First nameserver |
nameserver2 | String | No | Second nameserver |
nameserver3 | String | No | Third nameserver |
nameserver4 | String | No | Fourth nameserver |
nameserver5 | String | No | Fifth nameserver |
dnsmanagement | Number | No | Enables dns management for this domain |
emailforwarding | Number | No | Enables email forwarding for this domain |
idprotection | Number | No | Enables id protection for this domain |
firstname | String | Yes | First name of the user |
lastname | String | Yes | Last name of the user |
address1 | String | Yes | First part of user address |
address2 | String | No | Second part of user address |
city | String | Yes | City of the user |
state | String | Yes | State/Province of the user |
postcode | String | Yes | Postal/ZIP Code of the user |
country | String | Yes | Country of the user |
phonenumber | String | Yes | Phone number in the format +NNN.NNNNNNNNNN |
String | Yes | Email address of the user | |
adminfirstname | String | No | First name of the admin user |
adminlastname | String | No | Last name of the admin user |
adminaddress1 | String | No | First part of admin user address |
adminaddress2 | String | No | Second part of admin user address |
admincity | String | No | City of the admin user |
adminstate | String | No | State/Province of the admin user |
adminpostcode | String | No | Postal/ZIP Code of the admin user |
admincountry | String | No | Country of the admin user |
adminphonenumber | String | No | Phone number in the format +NNN.NNNNNNNNNN |
adminemail | String | No | Email address of the admin user |
domainfields | String | No | A base64 encoded serialized array of the TLD specific field values |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=TransferDomain&sld=exampledomain&tld=ly&transfersecret=gd23h231s21®period=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&[email protected]' --compressed
Example Response:
{"result":"success","msg":"Domain transfer initiated successfully."}
RenewDomain
This command is used to send a Renew command to the registrar.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
regperiod | Number | Yes | Registration period |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=RenewDomain&sld=exampledomain&tld=ly®period=1' --compressed
Example Response:
{"result":"success","msg":"The domain has been successfully."}
GetNameservers
This command is used to obtain the nameservers of a domain.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=GetNameservers&sld=exampledomain&tld=ly' --compressed
Example Response:
{"result":"success","ns1":"ns1.exampledomain.com","ns2":"ns2.exampledomain.com"}
SaveNameservers
This command is used to update the nameservers of a domain.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
nameserver1 | String | No | First nameserver |
nameserver2 | String | No | Second nameserver |
nameserver3 | String | No | Third nameserver |
nameserver4 | String | No | Fourth nameserver |
nameserver5 | String | No | Fifth nameserver |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=SaveNameservers&sld=exampledomain&tld=ly&ns1=ns1.exampledomain.com&ns2=ns2.exampledomain.com' --compressed
Example Response:
{"result":"success"}
GetContactDetails
This command is used to perform a whois lookup on a specified domain.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&[email protected]&action=GetContactDetails&sld=exampledomain&tld=ly' --compressed
Example Response:
{"result":"success","Registrant_Information":{"Company_Name":"Your Company","First_Name":"John","Last_Name":"Smith","Street_Address":"Example Street address","City":"some city","State_or_Province":"some state","Country":"Libya","Zip_or_Postal_Code":"123456","Phone_Number":"09212345678","Fax":"02112345678","E-mail_Address":"[email protected]"},"Administrative_Information":{"Company_Name":"Admin Company","First_Name":"admin first","Last_Name":"admin last","Street_Address":"some address","City":"some city","State_or_Province":"some state","Country":"Libya","Zip_or_Postal_Code":"34555","Phone_Number":"093334444","Fax":"093334444","E-mail_Address":"[email protected]"},"Technical_Information":{"Company_Name":"Tech Company","First_Name":"tech first","Last_Name":"tech last","Street_Address":"some address","City":"some city","State_or_Province":"some state","Country":"Libya","Zip_or_Postal_Code":"76543","Phone_Number":"093456784","Fax":"0213344555","E-mail_Address":"[email protected]"},"Billing_Information":{"Company_Name":"Billing Company","First_Name":"billing first","Last_Name":"billing last","Street_Address":"some address","City":"some city","State_or_Province":"some state","Country":"Libya","Zip_or_Postal_Code":"939393","Phone_Number":"0940404040","Fax":"0213344556","E-mail_Address":"[email protected]"}}
SaveContactDetails
his command is used to update the contact information on a domain.
Request Parameters
Name | Type | Required? | Description |
---|---|---|---|
sld | String | Yes | Domain name |
tld | String | Yes | Suffix attached to domain name |
contactdetails | Array | Yes |
Example Request:
curl 'https://my.register.ly/domainsResellerAPI/api.php' --data 'action=SaveContactDetails&token=TiPzCW1Y6qX2I7EMcwi7VAPf&[email protected]&&sld=exampledomain&tld=ly&contactdetails[Registrant_Information][First_Name]=John&contactdetails[Registrant_Information][Last_Name]=Smith&contactdetails[Registrant_Information][Company_Name]=Your Company&contactdetails[Registrant_Information][Street_Address]=Example Street address&contactdetails[Registrant_Information][City]=some city&contactdetails[Registrant_Information][State_or_Province]=some state&contactdetails[Registrant_Information][Country]=Libya&contactdetails[Registrant_Information][Zip_or_Postal_Code]=123456&contactdetails[Registrant_Information][E-mail_Address][email protected]&contactdetails[Registrant_Information][Phone_Number]=09212345678&contactdetails[Registrant_Information][Fax]=02112345678&contactdetails[Administrative_Information][First_Name]=admin first&contactdetails[Administrative_Information][Last_Name]=admin last&contactdetails[Administrative_Information][Company_Name]=Admin Company&contactdetails[Administrative_Information][Street_Address]=some address&contactdetails[Administrative_Information][City]=some city&contactdetails[Administrative_Information][State_or_Province]=some state&contactdetails[Administrative_Information][Country]=Libya&contactdetails[Administrative_Information][Zip_or_Postal_Code]=34555&contactdetails[Administrative_Information][E-mail_Address][email protected]&contactdetails[Administrative_Information][Phone_Number]=093334444&contactdetails[Administrative_Information][Fax]=093334444&contactdetails[Technical_Information][First_Name]=tech first&contactdetails[Technical_Information][Last_Name]=tech last&contactdetails[Technical_Information][Company_Name]=Tech Company&contactdetails[Technical_Information][Street_Address]=some address&contactdetails[Technical_Information][City]=some city&contactdetails[Technical_Information][State_or_Province]=some state&contactdetails[Technical_Information][Country]=Libya&contactdetails[Technical_Information][Zip_or_Postal_Code]=76543&contactdetails[Technical_Information][E-mail_Address][email protected]&contactdetails[Technical_Information][Phone_Number]=093456784&contactdetails[Technical_Information][Fax]=0213344555&contactdetails[Billing_Information][First_Name]=billing first&contactdetails[Billing_Information][Last_Name]=billing last&contactdetails[Billing_Information][Company_Name]=Billing Company&contactdetails[Billing_Information][Street_Address]=some address&contactdetails[Billing_Information][City]=some city&contactdetails[Billing_Information][State_or_Province]=some state&contactdetails[Billing_Information][Country]=Libya&contactdetails[Billing_Information][Zip_or_Postal_Code]=939393&contactdetails[Billing_Information][E-mail_Address][email protected]&contactdetails[Billing_Information][Phone_Number]=0940404040&contactdetails[Billing_Information][Fax]=0213344556' --compressed
Example Response:
{"result":"success"}