---
title: "Create"
method: POST
path: "/api/cp/setup/domain"
tags: ["Setup Domain"]
---

# Create

`POST /api/cp/setup/domain`

Create a new Setup Domain record.

## Request body

- SetupDomainInput
  - `id` integer — Id
  - `account_id` integer — Account Id (references account.id)
  - `domain` string, required — Domain (unique)
  - `brand_name` string — Brand Name
  - `managed` integer, required — Managed
  - `type` 'portal' | 'server', required — Type
  - `landing_page` string — Landing Page
  - `access` string — Access
  - `feature` string — Feature
  - `prop` string[] — Prop
  - `carrier_signup` integer — Carrier Signup
  - `customer_signup` integer — Customer Signup
  - `new_customer_defaults` string — New Customer Defaults
  - `new_customer_debit_limit` number — New Customer Debit Limit
  - `new_customer_status` string — New Customer Status
  - `ssl_certificate` string — Ssl Certificate
  - `ssl_certificate_key` string — Ssl Certificate Key
  - `ssl_ca_certificate` string — Ssl Ca Certificate
  - `ssl_cert_request_hash_a` string — Ssl Cert Request Hash A
  - `ssl_cert_request_hash_b` string — Ssl Cert Request Hash B
  - `a` string — A
  - `srv` object — Srv
  - `ttl` integer — Ttl
  - `template_customer_id` integer — Template Customer Id
  - `javascript` string — Javascript
  - `css` string — Css
  - `currencies` string — Currencies
  - `cdr_fields` string — Cdr Fields
  - `breakout_fields` string — Breakout Fields
  - `logo` string — Logo
  - `footer` string — Footer
  - `softphone_deploy_type` 'code' | 'sms' | 'existing' — Softphone Deploy Type
  - `softphone_signup_fields` string — Softphone Signup Fields
  - `softphone_menu` object — Softphone Menu
  - `softphone_register_success_html` string — Softphone Register Success Html
  - `softphone_host` string — Softphone Host
  - `softphone_flags` string[] — Softphone Flags
  - `smtp_server` string — Smtp Server
  - `smtp_username` string — Smtp Username
  - `smtp_password` string, password — Smtp Password
  - `smtp_from_address` string — Smtp From Address
  - `flags` string — Flags

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
