Skip to content

Test the stored acme-dns credentials

POST
/domains/{domain}/ssl/acme-dns/test
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.

domain
required
string

The domain name (for example example.com) — not a numeric id.

Example
example.com

The credentials work.

Media type application/json
object
message
string
ok
boolean
Example generated
{
"message": "example",
"ok": true
}

The credentials did not work (code: "verification_failed").

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"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.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

No domain, or this domain has no acme-dns credentials.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}