Accept the gateway terms of use
const url = 'https://api.nsin.ir/domains/example.com/gateways/terms/accept';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/gateways/terms/accept \ --header 'Authorization: Bearer <token>'Records acceptance for this domain. Idempotent — re-accepting keeps the original timestamp and accepter. Requires the same permission as enabling a gateway.
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 ”Terms status after acceptance
Per-domain acceptance of the gateway terms of use. accepted is false
until someone with records-edit permission accepts them.
object
Revision of the terms that was accepted.
Example generated
{ "accepted": true, "accepted_at": "2026-04-15T12:00:00Z", "accepted_by_id": 1, "accepted_by_name": "example", "accepted_by_email": "example", "version": 1}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 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"}