Accountmaker Docs

ドメイン

ブランディング、メール送信、TLS管理のためのカスタムドメイン設定。

domain dns tls email

ドメイン

ドメインは、ブランディング、メール配信、TLS設定のためにアカウントに登録されたカスタムhostnameを表します。

スキーマ

interface Domain {
  id: string; // "hst..." - 一意の識別子
  account_id: string; // 所有アカウント
  hostname: string; // ドメイン名
  client_id: string | null; // 関連クライアント
  cname_config: { type: "proxy" } | null;
  email_config:
    | { type: "catch-all" }
    | { type: "forward"; forward_to: Record<string, string> }
    | null;
  txt_verification_token: string; // DNS TXT検証トークン
}

プロパティ

プロパティ説明
idstringhst プレフィックスのKSUID
account_idstringドメインの所有アカウント
hostnamestringドメイン名(例: mail.example.com
client_idstring?関連OAuthクライアント
cname_configobject?CNAMEプロキシ設定
email_configobject?受信メールのルーティング設定
txt_verification_tokenstringDNS TXT検証トークン

DNS検証

所有権を確認するためにTXTレコードを追加します。

種類名前
TXT_am.mail.example.com{txt_verification_token}

検証フロー

DNSSystemAdminDNSSystemAdminドメイン登録TXT検証トークンTXTレコード追加POST /api/domains/:domain_id/checksTXT照会トークン検出検証済みに設定

{
  "id": "hst_2kHfPZcN9xW4mE8RtY7vB",
  "account_id": "acc_1jGePYbM8wV3lD7QsX6uA",
  "hostname": "mail.example.com",
  "client_id": null,
  "cname_config": { "type": "proxy" },
  "email_config": null,
  "txt_verification_token": "am_2abc123xyz"
}

関連