Domains

Create a new domain

Changed on

Creates a new domain and automatically requests a Let's Encrypt challenge. You can specify the challenge type (HTTP-01 or DNS-01) in the request.

  • HTTP-01: Validates domain ownership by placing a file on your web server at /.well-known/acme-challenge/
  • DNS-01: Validates domain ownership by adding a TXT record to your DNS (required for wildcard domains)
post/domains

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

challenge_typestring

Challenge type for Let's Encrypt validation. Options: "http-01" (default) or "dns-01"

domainstring required

Response

Domain created successfully

certificatestring nullable

The PEM-encoded certificate chain (can be displayed in browser or downloaded)

created_atstring date-time required
dns_challenge_tokenstring nullable
dns_challenge_valuestring nullable
domainstring required
expiration_timestring date-time nullable
failure_cause'dns_lookup' | 'unreachable' | 'upstream_answered' | 'dns_record_mismatch' | 'caa_forbids' | 'rate_limited' | 'ca_transient' | 'config' | 'unknown' nullable

Why the last certificate attempt for a domain failed.

idinteger required
is_wildcardboolean required
last_errorstring nullable
last_error_typestring nullable
last_renewedstring date-time nullable
on_demand_backoff_untilstring date-time nullable

On-demand TLS negative-cache deadline (ISO 8601, UTC), when this hostname's on-demand HTTP-01 issuance is in backoff after a failure (ADR-018 §4). None means no active backoff.

statusstring required
updated_atstring date-time required
verification_methodstring required

Changes

    • breaking

      the created_at response's property type changed from integer to string, and format from int64 to date-time for status

    • breaking

      the expiration_time response's property type changed from integer null to string null, and format from int64 to date-time for status

    • breaking

      the last_renewed response's property type changed from integer null to string null, and format from int64 to date-time for status

    2 more changes in this revision