---
title: "Create an email domain"
method: POST
path: "/v3/portals/email-domains"
tags: ["Portal Emails"]
---

# Create an email domain

`POST /v3/portals/email-domains`

Create an email domain

## Request body

- EmailDomainPayload
  - `domain` string, required

## Response `201`

success

- EmailDomain
  - `domain` string, required
  - `verification` EmailDomainVerification, required
    - `status` 'pending' | 'success' | 'failed' | 'temporary_failure' | 'not_started', required — Specifies the status of the mail domain verification
    - `last_time_checked` string, date-time, required — An ISO-8601 timestamp representation of the last time the verification got checked.
    - `last_time_success` string, date-time, required — An ISO-8601 timestamp representation of the last time the verification succeeded.
  - `dns_validation_records` DNSRecord[], required
    - `type` string, required
    - `name` string, required
    - `value` string, required
  - `created_at` string, date-time, required — An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required — An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/68eab1ba2ab7/schema)
