# Add Domain forwarding

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/forwarding:
    post:
      summary: Add Domain forwarding
      deprecated: false
      description: >-
        Enables redirection from one or more registered domains to a specified
        destination domain. 
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: ' x-service-provider'
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                domainIds:
                  type: array
                  items:
                    type: string
                  description: Array of domain ids to add forwarding to.
                forwardTo:
                  type: string
                  description: Destination domain
                  x-apidog-mock: destination.com
                contains:
                  type: string
                  description: Search filter to target domains with specified substring.
                tagIds:
                  type: array
                  items:
                    type: string
                  description: Array of tag ids of target doamins.
              required:
                - domainIds
                - forwardTo
                - contains
                - tagIds
              x-apidog-orders:
                - domainIds
                - forwardTo
                - contains
                - tagIds
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: 'null'
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13520843-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
