Domains
The Domains API allows you to register, configure, and maintain domains programmatically for seamless domain management and integration.
Domain Configuration
To configure a domain, follow these steps:
-
Navigate to Domain Registrar: Navigate to your domain registrar and configure the nameservers.
-
Create NS Records: Create NS records pointing to Smart-Link nameservers.
example.com. 86400 IN NS ns1.smartlink.mk.example.com. 86400 IN NS ns2.smartlink.mk.example.com. 86400 IN NS ns3.smartlink.mk.example.com. 86400 IN NS ns4.smartlink.mk. -
Make a Request: Make a request to add the domain to the Smart-Link platform.
POST https://api.smartlink.mk/domains HTTP/1.1Content-Type: application/jsonAuthorization: Bearer <YOUR_ACCESS_TOKEN>{"name": "example.com"}
Domain Deletion
To delete a domain, you need to make a DELETE
request to the /domains/<DOMAIN>
endpoint.
DELETE https://api.smartlink.mk/domains/<DOMAIN> HTTP/1.1Content-Type: application/jsonAuthorization: Bearer <YOUR_ACCESS_TOKEN>