POST /api/domain/start-certificate/
Initiates a Letβs Encrypt certificate request for a custom domain. This is Step 1 of the zero-downtime SSL flow.Purpose
This endpoint starts the ACME DNS-01 challenge process:- Creates a new certificate order with Letβs Encrypt
- Returns a TXT record the user must add to their DNS
- Stores the challenge data for later completion
Architecture
Internal Services
start_certificate_request
Creates a new Letβs Encrypt certificate order using the ACME protocol. Location:src/app/apis/domain/shared/letsencrypt/certificate_service.py
Returns:
order_url- URL to check order statusauthorization_url- URL for authorizationchallenge_url- URL to respond to challengefinalize_url- URL to finalize ordertxt_record_name- DNS TXT record name (e.g.,_acme-challenge.example.com)txt_record_value- DNS TXT record value
Response Fields
| Field | Type | Description |
|---|---|---|
txt_record_name | string | TXT record name to add to DNS |
txt_record_value | string | TXT record value |
order_url | string | ACME order URL |
authorization_url | string | ACME authorization URL |
challenge_url | string | ACME challenge URL |
finalize_url | string | ACME finalize URL |