Get certificate status
const url = 'https://api.nsin.ir/domains/example.com/ssl/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.nsin.ir/domains/example.com/ssl/ \ --header 'Authorization: Bearer <token>'The domain’s current certificate — issuer, validity, SANs, key size — plus
whether a manual re-issue is currently allowed, and coverage: proxied
hostnames that are not on the certificate yet, with their retry state.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comResponses
Section titled “ Responses ”Certificate status.
object
Whether POST /domains/{domain}/ssl/issue would be accepted right now.
Why manual issuance is unavailable, when can_manual_issue is false.
The name the reported certificate is installed under — usually the apex, but a domain may hold a certificate for one subdomain only.
Every name of this domain with an active certificate, sorted.
Proxied names with no certificate behind them, sorted. External-DNS
domains only — for managed domains the same gaps arrive in
coverage, with the retry schedule that applies when we can issue.
Proxied hostnames not yet on the certificate. Absent when coverage is complete.
A proxied hostname that the domain’s certificate does not cover yet.
object
The certificate authority’s own reason for the last failure.
Example
{ "status": "active", "coverage": [ { "status": "pending" } ]}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}