Get Name servers to connect domain
Set Up Domain Forwarding#
This endpoint lets you set up forwarding from one domain to another.Endpoint#
Request Body#
Name | Type | Description |
---|
domainIds | array | An array of domain IDs to which the forwarding should be added. |
forwardTo | string | The domain where the existing domain name should be forwarded. |
contains | string (Optional) | Only add forwarding to specific domains by keyword. |
Example Request#
{
"domainIds": ["1234-abcd-5678-efgh"],
"forwardTo": "newdomain.com",
"contains": "example"
}
Request Code Samples
curl --location --request POST 'https://api.zapmail.ai/api/v1/domain/get-name-servers' \
--header 'x-auth-zapmail: '
Responses
application/json {
"status": 200,
"message": "NS records for transfer fetched successfully",
"data": {
"nameServers": "braelyn.ns.cloudflare.com,jermaine.ns.cloudflare.com"
}
}
Modified at 2025-01-30 13:15:21