Return the current status of a hostname certificate: ordering, issued, failed (with error details), or stopped, along with the current issuance's expiration time. Poll this endpoint after requesting a certificate.

GET /organizations/{organizationId}/external_issuers/{issuer}/certificates/{certificateId}

GET https://zanpki.com/organizations/{organizationId}/external_issuers/{issuer}/certificates/{certificateId}

Operation ID organizations.organizationId.external_issuers.issuer.certificates.certificateId.get
Access Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key.

Parameters

NameInTypeDescription
organizationId Path Required string (snowflake) Organization ID.
issuer Path Required one of: 2, 3, 4 External issuer ID: 2 (Let's Encrypt), 3 (ZeroSSL), or 4 (Google Trust Services).
certificateId Path Required string (snowflake) Certificate ID.

Responses

StatusDescriptionSchemaContent type
200 Current status of the hostname certificate. HostnameCertificate application/json
403 Your roles do not permit this action. Problem application/json
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json
Any other status The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. Problem application/json

200 Current status of the hostname certificate.

PropertyTypeDescription
certificates_id string (snowflake) Required The certificate's ID. It stays the same through every reissue and renewal.
certificates_requested_names string Required Requested DNS names for a certificate from an external issuer, one per line (the apex domain, subdomains, or wildcards such as *.acme.com). Searches match substrings.
certificates_state one of: 1, 2, 3, 4 Required Issuance state of a certificate from an external issuer: 1 (ordering), 2 (issued), 3 (failed; see error for details), or 4 (stopped).
state string Required Current certificate state: ordering, issued, failed, or stopped.
certificates_error string, or null Optional Error message explaining why the last order failed, or null if it succeeded.
certificates_current_issuance_id string (snowflake), or null Optional ID of the latest issuance returned on download, or null until the certificate is first issued.
issuances_expires_at integer (int64), or null Optional When the certificate expires (NotAfter), in seconds since the Unix epoch. For a certificate request, null until a certificate has been issued.
certificates_order_failing_since integer (int64), or null Required When ordering or renewing the certificate from its public issuer first failed, counting only attempts since its current issuance or since it was requested. This field is empty when no order or renewal is failing.
certificates_updated_at integer (int64) Required When the certificate record was last updated, in seconds since the Unix epoch.

403 Your roles do not permit this action.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

422 The request input was rejected. The errors object lists each validation failure.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.
errors InputErrors Required Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure.

Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

Example

curl -X GET 'https://zanpki.com/organizations/{organizationId}/external_issuers/{issuer}/certificates/{certificateId}' \
  -H 'Authorization: Bearer <access token>'

All documentation