---
title: "POST /domain.create"
method: POST
path: "/domain.create"
tags: ["domain"]
---

# POST /domain.create

`POST /domain.create`

## Request body

- object
  - `applicationId` string, nullable
  - `certificateType` 'letsencrypt' | 'none' | 'custom'
  - `composeId` string, nullable
  - `customCertResolver` string, nullable
  - `domainType` 'compose' | 'application' | 'preview', nullable
  - `host` string, required
  - `https` boolean
  - `internalPath` string, nullable
  - `path` string, nullable
  - `port` number, nullable
  - `previewDeploymentId` string, nullable
  - `serviceName` string, nullable
  - `stripPath` boolean

## Response `200`

Successful response

- object
  - `applicationId` string, nullable, required
  - `certificateType` 'letsencrypt' | 'none' | 'custom', required
  - `composeId` string, nullable, required
  - `createdAt` string, required
  - `customCertResolver` string, nullable, required
  - `domainId` string, required
  - `domainType` 'compose' | 'application' | 'preview', nullable, required
  - `host` string, required
  - `https` boolean, required
  - `internalPath` string, nullable, required
  - `path` string, nullable, required
  - `port` number, nullable, required
  - `previewDeploymentId` string, nullable, required
  - `serviceName` string, nullable, required
  - `stripPath` boolean, required
  - `uniqueConfigKey` number, required

## Other responses

- `default` — Error response

---

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