Gateway terms of use status
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Whether this domain has accepted the gateway terms of use, and who
accepted them. Gateways route traffic over shared egress IP addresses
that can change, so the terms must be accepted before a gateway can be
enabled — POST .../apply returns 403 with
error_code: gateway_terms_required until they are.
Acceptance is per DOMAIN, not per user.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Responses
200Terms status
Content type: application/json
- acceptedboolean
Whether this domain has accepted the gateway terms of use.
- accepted_atstring (date-time)
When they were accepted.
- accepted_by_idinteger
User id of whoever accepted them.
- accepted_by_namestring
Their name, when known.
- accepted_by_emailstring
Their email, when known.
- versioninteger
Revision of the terms that was accepted.
{
"accepted": true,
"accepted_at": "2026-01-01T00:00:00Z",
"accepted_by_id": 0,
"accepted_by_name": "string",
"accepted_by_email": "string",
"version": 0
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}Example request
curl -X GET "https://api.nsin.ir/domains/example.com/gateways/terms" \
-H "Authorization: Bearer $NSIN_API_KEY"