Show details for a certificate.

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

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

Operation ID organizations.organizationId.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.
certificateId Path Required string (snowflake) Certificate ID.

Responses

StatusDescriptionSchemaContent type
200 Show details for a certificate. CertificatePage application/json, text/html, text/markdown
403 Your roles do not permit this action. Problem application/json, text/html, text/markdown
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json, text/html, text/markdown
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, text/html, text/markdown

200 Show details for a certificate.

PropertyTypeDescription
pki_organizations_id string (snowflake) Required The organization's ID.
pki_organizations_name string Required Name of the organization (a customer, product, or team that owns authorities, certificates, and machines), up to 100 characters.
pki_agencies_id string (snowflake) Required The agency ID, or for an organization, the ID of its parent agency.
pki_agencies_name string Required Name of your company or agency (up to 100 characters) that owns its organizations.
certificates_id string (snowflake) Required The certificate's ID. It stays the same through every reissue and renewal.
certificates_name string Required Display name for the certificate in ZanPKI (up to 100 characters). Exported files use this name.
issuances_id string (snowflake) Required ID of the issuance. Each time a certificate is issued, it receives a new issuance ID and serial number.
issuances_common_name string, or null Required The subject common name (CN), such as a hostname.
country string, or null Required Two-letter ISO country code, such as US.
state string, or null Required The subject's state or province, up to 64 characters; empty for none.
city string, or null Required The subject's city or locality, up to 64 characters; empty for none.
organization string, or null Required Company or organization name in the certificate subject (up to 64 characters), or empty if none.
unit string, or null Required A department or team within the subject's organization, up to 64 characters; empty for none.
email string, or null Required Email address in the certificate subject, or empty if none. Must be permitted by the signing authority and its issuer chain.
issuances_profile one of: 1, 2, 3, 4 Required Certificate profile that sets its X.509 key purposes: 1 for TLS server (website, service, or VPN), 2 for mTLS client (service), 3 for VPN user (client authentication), or 4 for TLS server and client (both directions). Pass null when searching to match any profile.
profile_label string Required Display label for the certificate profile: TLS server (website, service, or VPN), mTLS client (service), VPN user (client authentication), or TLS server and client (both roles).
issuances_profile_id string (snowflake), or null Required ID of the organization's custom profile derived from the base profile, or null if using a built-in ZanPKI profile or if the custom profile was deleted.
certificate_profiles_name string, or null Required Profile name (1 to 100 characters), shown in certificate issuance forms.
sans list of string Required Subject alternative names (SANs), formatted in OpenSSL style (such as DNS:example.com, IP:10.0.0.1, Email:admin@example.com, or URI:https://example.com); empty if none.
issuances_authority_id string (snowflake), or null Required ID of the organization's authority that signed the certificate, or null for an imported certificate not signed by any of the organization's authorities.
authorities_name string, or null Required Display name for the authority in ZanPKI (up to 100 characters). Exported files use this name.
issuances_created_at integer (int64) Required When the certificate's validity period starts (NotBefore), in seconds since the Unix epoch.
issuances_expires_at integer (int64) Required When the certificate expires (NotAfter), in seconds since the Unix epoch. For a certificate request, null until a certificate has been issued.
serial string Required Serial number of the certificate, formatted as colon-separated uppercase hex pairs.
issuances_key_type one of: 1, 2, 3, 4, 5, 6, 7, 8, 9 Required Key algorithm and size. RSA 4096 is the default, because every browser and almost all software accept it. ML-DSA-87 is the strongest level of ML-DSA, the post-quantum signature standard. In our tests, Chrome accepted ML-DSA certificates, but Safari and Java refused them, and Firefox hasn't been tested, so use ML-DSA only where you control the software that checks the certificate. Choose an elliptic curve only for clients that need one. Chrome doesn't accept an EC P-521 website certificate.
key_type_label string Required Display label for the key type: RSA 2048, RSA 3072, RSA 4096, EC P-256, EC P-384, EC P-521, ML-DSA-44, ML-DSA-65, or ML-DSA-87.
issuances_digest one of: 1, 2, 3, 4 Required Signature hash algorithm used by the signing authority. Leave it empty to use the profile's digest, or, if the profile has none, to match the authority's key: SHA-384 for RSA 4096 and EC P-384, SHA-512 for EC P-521, and SHA-256 for RSA 2048, RSA 3072, and EC P-256. An ML-DSA authority always signs with pure ML-DSA, which has no separate hash.
digest_label string Required Display label for the signature hash algorithm: SHA-256, SHA-384, SHA-512, or pure ML-DSA.
issuances_status one of: 1, 2 Required Current status of the issuance: 1 for active (valid until expiration) or 2 for revoked (published on the signing authority's CRL). An active issuance past its expiration time is expired, as reflected in status_label.
status_label string Required Display label for the certificate's status: Active, Revoked, or Expired (for an active certificate past its expiration date).
issuances_revoked_at integer (int64), or null Required When the issuance was revoked, in seconds since the Unix epoch, or null if it has not been revoked.
issuances_revocation_reason one of: 0, 1, 2, 3, 4, 5, 9, null Required Revocation reason recorded on the signing authority's CRL: 0 unspecified, 1 key compromised, 2 authority compromised, 3 affiliation changed, 4 superseded, 5 no longer in use, or 9 privilege withdrawn. Null if not revoked.
revocation_reason_label string, or null Required Display label for the revocation reason (such as Key compromised), or null if not revoked.
issuances_origin one of: 1, 2, 3, 4 Required How the certificate was obtained: 1 for internal (issued by ZanPKI), 2 for imported, or 3 for public authority (signed by Let's Encrypt, ZeroSSL, or Google through one of the organization's public authorities).
origin_label string Required Display label for the certificate's origin: Internal, Imported, or Public authority.
holds_private_key boolean Required Whether ZanPKI stores the certificate's private key (required to export the key). False if the key was delivered only once at issuance or was never uploaded to ZanPKI.
issuances list of IssuanceLine Required Issuance history for this certificate, newest first, including each issuance's ID, serial number, validity period, status, and whether it is current.
may_reissue boolean Required Whether you can reissue this certificate now. Requires certificates:issue, a ZanPKI-issued active certificate, and an active, unexpired signing authority with its private key stored in ZanPKI and no revoked issuer in its chain.
may_revoke boolean Required Whether you can revoke this certificate now. Requires certificates:issue, an active certificate, and an active, unexpired signing authority with its private key stored in ZanPKI.
revocation_unpublished boolean Required Whether the certificate has been revoked after the authority's current CRL was signed, so the revocation is not yet published. False if the certificate is not revoked or the authority cannot sign a CRL in ZanPKI.
may_publish_revocation_list boolean Required Whether you can publish the signing authority's CRL now. Requires a revoked certificate, an authority that can sign CRLs in ZanPKI, and the certificates:issue permission.
fingerprint_sha256 string Required SHA-256 fingerprint of the certificate, formatted as colon-separated uppercase hex pairs.
may_export_private_key boolean Required Whether your roles allow exporting the certificate's private key (certificates:issue). Exporting also requires the private key to be stored in ZanPKI.
may_delete_private_keys boolean Required Whether you can delete the private keys ZanPKI stores for this certificate. True for external-issuer certificates with stored private keys when your roles allow it.
may_delete boolean Required Whether you can delete this certificate now. Requires certificates:issue and that no CRL can still require it.
deletable_from integer (int64), or null Required Earliest time the certificate can be deleted, in seconds since the Unix epoch: when it expires, or one week later if it was revoked. Null if it can be deleted now or your roles do not allow deletion.
deletable_after_revocation_lists boolean Required Whether deletable_from waits for revocation lists to stop listing a revoked certificate, one week after it expires. False when it waits only for the certificate to expire.
revocation_list_named string, or null Required External CRL distribution URL embedded in the certificate when it differs from the signing authority's ZanPKI CRL (for example, if signed before the authority was imported). Null if it matches ZanPKI's CRL, has none, or the authority is not in ZanPKI.
certificates_paused_for one of: 1, null Optional Why this certificate from an external issuer is not being ordered or renewed: 1 (the organization is not on the Paid plan). Null when it is not paused.
certificates_order_failing_since integer (int64), or null Optional 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_error string, or null Optional Error message explaining why the last order failed, or null if it succeeded.
certificates_renew_at integer (int64), or null Optional When the certificate will next be renewed, or when renewal will be retried if it is failing.
billing_url string, or null Required URL of the agency's billing page, given while this certificate is paused for the Paid plan and your roles let you manage the agency's billing. Null otherwise.
paused_advice one of: 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, null Required While this certificate waits for the Paid plan, what lifts the pause for you: 9 (upgrade on the agency's billing page), 10 (billing is unavailable right now), 11 (someone who manages the agency's billing can upgrade), or 12 (the Paid plan isn't available yet). Null otherwise.
members list of MemberLine Required Users and machines assigned a role directly on this certificate, each with a DELETE path to remove those roles. Empty if the caller only has roles scoped below the organization level.
organization_members list of MemberLine Required Organization members and machines eligible to be assigned a role on this certificate (deduplicated). Populated only for callers who can manage members here.
may_manage_members boolean Required Whether your roles allow assigning and removing roles on this certificate (members:manage).
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).
ordered_from_public_issuer boolean Required Whether this certificate was ordered from a public issuer such as Let's Encrypt. Only these certificates can be stopped, started again, or replaced.
may_change_serving boolean Required Whether you can stop, start again, or replace this certificate. Requires certificates:issue.
replacement_key_types list of one of: 1, 2, 3, 4, 5, 6, 7, 8, 9 Required Key types you can order a replacement with, as supported by the certificate's issuer. Empty if the certificate cannot be replaced now: it is stopped, a replacement is already being ordered, or you do not have permission.
certificates_replaces_certificate_id string (snowflake), or null Optional ID of the certificate that this one replaces. That certificate is stopped when this one is first issued. Null if this certificate replaces none.
replacement_certificates_id string (snowflake), or null Required ID of the latest certificate ordered to replace this one, or null if none was ordered.
replacement_certificates_state one of: 1, 2, 3, 4, null Required State of the latest replacement: 1 (ordering), 2 (issued), 3 (failed), or 4 (stopped). Null if no replacement was ordered.
replacement_key_type one of: 1, 2, 3, 4, 5, 6, 7, 8, 9, null Required Key type of the latest replacement, or null if no replacement was ordered.
replacement_issued boolean Required Whether the latest replacement has been issued. When it is first issued, this certificate is stopped.

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}/certificates/{certificateId}' \
  -H 'Authorization: Bearer <access token>'

All documentation