Domain
Domain merepresentasikan hostname kustom yang terdaftar pada akun untuk branding, deliverability email, dan konfigurasi TLS.
Skema
interface Domain {
id: string; // "hst..." - Identifikasi unik
account_id: string; // Akun pemilik
hostname: string; // Nama domain
client_id: string | null; // Klien terkait
cname_config: { type: "proxy" } | null;
email_config:
| { type: "catch-all" }
| { type: "forward"; forward_to: Record<string, string> }
| null;
txt_verification_token: string; // Nilai TXT untuk verifikasi DNS
}
Properti
| Properti | Tipe | Deskripsi |
|---|---|---|
id | string | KSUID dengan prefiks hst |
account_id | string | Akun yang memiliki domain |
hostname | string | Nama domain (mis. mail.example.com) |
client_id | string? | Klien OAuth terkait |
cname_config | object? | Konfigurasi proxy CNAME |
email_config | object? | Konfigurasi routing email masuk |
txt_verification_token | string | Token verifikasi DNS TXT |
Verifikasi DNS
Tambahkan record TXT untuk verifikasi kepemilikan:
| Tipe | Nama | Nilai |
|---|---|---|
| TXT | _am.mail.example.com | {txt_verification_token} |
Alur Verifikasi
Contoh
{
"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"
}
Terkait
- Kunci DKIM - Penandatanganan email
- Email - Infrastruktur email