# Activate Email Sending

POST /api/v2/projects/{projectId}/domains/{domainId}/activate-email

Registers the domain with Resend and turns on open/click tracking through trackingSubdomain, defaulting to links. Does not start verification and does not return the record set. Read DNS from Get Domain (emailConfig.records), add those records, then call Verify Email DNS. Sets sending status to PENDING.

## Request

- projectId: string, path, required — ID of the project that owns the domain.
- domainId: string, path, required — ID of the domain.
- trackingSubdomain: string — Subdomain to serve open and click tracking from, e.g. links for links.acme.com. Defaults to links.

## Response

- 200: Successful response
  - createdAt: string, required
  - emailReceivingStatus: INACTIVE | PENDING | ACTIVE | ERROR, required, default INACTIVE
  - emailStatus: INACTIVE | PENDING | ACTIVE | ERROR, required, default INACTIVE
  - id: string, required
  - name: string, required
  - projectId: string, required
  - senderReputation: integer, required, default 50
  - shortlinkEnabled: boolean, required
  - trackingVerificationStatus: PENDING | VALID | INVALID, required, default PENDING
  - updatedAt: string, required
  - vercelConfigured: boolean, required
  - vercelVerificationStatus: PENDING | VALID | INVALID, required, default PENDING
  - warmupDay: integer, required, default 0
  - warmupSentCount: integer, required, default 0
  - warmupStatus: PENDING | WARMING | COMPLETED, required, default PENDING
  - emailProvider: string
  - emailProviderDomainId: string
  - emailReceivingProviderId: string
  - emailVerificationRequestedAt: string
  - receivingVerificationRequestedAt: string
  - senderReputationComputedAt: string
  - shortlinkVerificationRequestedAt: string
  - trackingSubdomain: string
  - vercelVerificationDNS: object[]
    - domain: string, required
    - type: string, required
    - value: string, required
    - reason: string
  - …
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
