Gateway request packs for this domain
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
The catalog of gateway request packs, whether this domain can use one, and its pack balance. A pack adds gateway requests to one domain without changing its plan. Packs never expire. They are used only by requests above the plan's own gateway allowance in a plan period.
Buying a pack moves money, so it is done from the panel. API keys get
403 on POST /domains/{domain}/gateway-packs/purchase. Readable by
shared members.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Responses
200Pack catalog and this domain's position.
Content type: application/json
- packsarray of object
Item fields
- keystring
- namestring
- requestsinteger
- price_rialsinteger
VAT included.
- saving_percentinteger
Saving per request against the smallest pack.
- eligibleboolean
- ineligible_reasonstringOne of:
"""no_plan""gateways_not_on_plan""unlimited" - plan_requests_capinteger | null
The plan's own request allowance per period; null = unlimited.
- requests_usedinteger
Gateway requests served this plan period.
- pack_period_requestsinteger
Pack credit this period may draw on; the period's cap is plan_requests_cap plus this.
- pack_requests_leftinteger
Unspent pack requests. They never expire.
- purchased_requestsinteger
Every pack ever bought for this domain.
- quota_exceededboolean
- purchasesarray of object
Item fields
- idinteger
- pack_keystring
- pack_namestring
- requestsinteger
- price_rialsinteger
- invoice_idinteger
- created_atstring (date-time)
{
"packs": [
{
"key": "lite",
"name": "Lite",
"requests": 250000,
"price_rials": 10000000,
"saving_percent": 0
}
],
"eligible": true,
"ineligible_reason": "",
"plan_requests_cap": 0,
"requests_used": 0,
"pack_period_requests": 0,
"pack_requests_left": 0,
"purchased_requests": 0,
"quota_exceeded": true,
"purchases": [
{
"id": 0,
"pack_key": "string",
"pack_name": "string",
"requests": 0,
"price_rials": 0,
"invoice_id": 0,
"created_at": "2026-01-01T00:00:00Z"
}
]
}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"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/domains/example.com/gateway-packs" \
-H "Authorization: Bearer $NSIN_API_KEY"