---
title: "Create a domain"
method: POST
path: "/services/{serviceId}/domains/{domainName}"
tags: ["Domains"]
---

# Create a domain

`POST /services/{serviceId}/domains/{domainName}`

Creates a new domain on the specified service to host email templates.

## Path parameters

- `serviceId` string, required
- `domainName` string, required

## Response `201`

The created domain.

- CreateDomainResponse
  - `result` string — The result of the create domain operation.
  - `records` object
    - `receivingRecords` ReceivingRecords[] — The receiving records of the domain.
      - `isActive` boolean — True if the domain is active.
      - `cached` string[] — Any cached value of the record.
      - `priority` integer — The priority for the record.
      - `recordType` string — The type of the record.
      - `valid` 'valid' | 'invalid' — The validity of the record.
      - `value` string — The value of the record.
    - `sendingRecords` SendingRecords[] — The sending records of the domain.
      - `isActive` boolean — True if the domain is active.
      - `cached` string[] — Any cached value of the record.
      - `name` string — The name of the domain record.
      - `recordType` string — The type of the record.
      - `valid` 'valid' | 'invalid' — The validity of the record.
      - `value` string — The value of the record.

---

[API](https://skmtc.net/sinch/apis/fax-api.md) · [All operations](https://skmtc.net/sinch/apis/fax-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinch/fax-api/revisions/ebcbb377ee0f/schema)
