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/v2/domains/forwarding' \
--header 'x-auth-zapmail: '
Responses
application/json {
"status": 200,
"message": "Domain forwarding will be enabled in sometime",
"data": null
}
Modified at 2025-06-27 15:15:40