Test the stored acme-dns credentials
const url = 'https://api.nsin.ir/domains/example.com/ssl/acme-dns/test';const options = {method: 'POST', 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 POST \ --url https://api.nsin.ir/domains/example.com/ssl/acme-dns/test \ --header 'Authorization: Bearer <token>'Re-checks the credentials already stored for this domain by writing a throwaway value through the API, exactly as the upload did.
An acme-dns account can stop working long after it was accepted — the
owner rotates it, the instance moves, an allowlist starts excluding our
egress — and nothing surfaces that until a renewal fails weeks later.
Requires ssl.manage.
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 ”The credentials work.
object
Example generated
{ "message": "example", "ok": true}The credentials did not work (code: "verification_failed").
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}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"}The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}No domain, or this domain has no acme-dns credentials.
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"}