Zapmail
latest
  • latest
  • v1
  1. domains
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
      GET
    • Get Mailbox Details by ID
      GET
    • Assign New Mailboxes to Domains
      POST
    • Update mailbox
      PUT
    • Remove mailboxes on next renewal
      PUT
    • Get Authenticator code
      GET
  • payments & wallet
    • Add balance to wallet
    • Get wallet balance
    • Enable auto recharge
  • export
    • Export mailboxes
    • Add third party account details
    • Update third party account details
  • subscriptions
    • Get all subscriptions
    • Cancel subscription
    • Upgrade existing subscription
  • domains
    • Retrieve All Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC record
      POST
    • Add Domain forwarding
      POST
    • Get Name servers to connect domain
      POST
    • Verify Name Server Propagation
      POST
    • Connect Domain with Zapmail
      POST
    • Enable email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Enable catch all emails
      POST
    • Remove catch all emails
      DELETE
    • Check DNS records
      POST
    • Remove unused domains
      DELETE
    • Get available domains for registration
      POST
    • Get domains purchase payment link
      POST
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  1. domains

Remove email forwarding

DELETE
/v2/domains/email-forwarding

Deactivate Email Forwarding for Domain#

This endpoint lets you deactivate email forwarding for your domain, stopping the forwarding of emails from your domain to the specified email address.

Endpoint#

Request Body#

NameTypeDescription
domainIdsarrayAn array of domain IDs from which email forwarding should be removed.
containsstring(Optional) Remove email forwarding only for domains that match the specified keyword.

Example Request#

{
    "domainIds": ["domainId1", "domainId2"],
    "contains": "example"
}

Request

Header Params
x-auth-zapmail
string 
required
Example:
{{x-auth-zapmail}}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.zapmail.ai/api/v2/domains/email-forwarding' \
--header 'x-auth-zapmail: '

Responses

🟢200Success
application/json
Body
object {0}
Example
{
  "status": 200,
  "message": "Email forwarding will be removed soon",
  "data": null
}
Previous
Enable email forwarding
Next
Enable catch all emails
Built with