Obtenir un domaine personnalisé
GET /v1/custom-domains/{custom_domain_id} · permission custom-domains:read
Renvoie un domaine personnalisé. Lorsque l'émission du certificat est bloquée par CAA (failure_reason = caa_blocked), caa contient une vérification CAA en direct avec les enregistrements exacts à ajouter à votre DNS. L'en-tête ETag est la valeur If-Match pour la suppression et :make-primary.
Requête
| Champ | Type | Obligatoire | Description |
|---|---|---|---|
custom_domain_id |
string | oui | Identifiant du domaine personnalisé (cdom_…). |
Pas de corps de requête.
Réponse
200 OK avec le domaine et un en-tête ETag.
{
"id": "cdom_01j9xk3m7q8r2s4t6v8w0y2z4a",
"hostname": "login.example.com",
"is_primary": false,
"status": "issuing",
"failure_reason": "caa_blocked",
"dns_records": [
{
"type": "TXT",
"name": "_akp-verify.login.example.com",
"value": "idp-verify=3q2-7wEXAMPLEtokenQ9"
},
{
"type": "CNAME",
"name": "login.example.com",
"value": "acme.eu.edge.keenauth.app"
}
],
"certificate_expires_at": null,
"last_checked_at": "2026-10-05T09:31:00Z",
"next_check_at": "2026-10-05T09:36:00Z",
"activated_at": null,
"degraded_since": null,
"status_changed_at": "2026-10-05T09:30:00.123456Z",
"caa": {
"blocked": true,
"node": "example.com",
"missing_issuers": [
"letsencrypt.org"
],
"critical_unknown": false,
"suggested_records": [
"example.com. CAA 0 issue \"letsencrypt.org; validationmethods=http-01,tls-alpn-01\""
]
},
"created_at": "2026-10-05T09:30:00.123456Z",
"updated_at": "2026-10-05T09:30:00.123456Z"
}
Erreurs
| HTTP | code | Quand |
|---|---|---|
| 404 | not_found |
Le domaine personnalisé n'existe pas ou appartient à un autre environnement. |
| 401 | unauthenticated |
L'identifiant est absent, invalide ou révoqué. |
| 403 | insufficient_permissions |
L'identifiant n'a pas la permission requise. |
| 429 | rate_limited |
La limite de débit a été dépassée ; réessayez après le délai Retry-After. |
| 503 | service_unavailable |
Une dépendance est temporairement indisponible ; réessayez après le délai Retry-After. |
Exemple
curl https://api.eu.keenauth.com/v1/custom-domains/cdom_01j9xk3m7q8r2s4t6v8w0y2z4a \
-H "Authorization: Bearer $KEENAUTH_SECRET_KEY"