Browse cached entries
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
A page of the domain's individual cached objects.
Note the two host/path pairs on each row: host and path are the
human-readable request URL, while hostname (the storage namespace) and
store_path are the stored identity you must echo back when purging a
specific row. The listing is a registry of what was written, so it can
lag the storage by a little. Requires domain.view.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Query parameters
- limitintegerqueryDefault:
100 - offsetintegerqueryDefault:
0 - countstringquery
0skips computingtotal(a second pass over the domain's entries) — use it when paging withoffsetand you already know the total. The response then carriescount_skipped: true.One of:"0" - sortstringquery
Sort column. Anything else falls back to
cached_at.One of:"size""host""hostname""path""expires_at""cached_at" - dirstringqueryOne of:
"asc""desc" - hostnamestringquery
Exact match on the storage namespace host.
- hoststringquery
Match on the request host — substring, or a
*wildcard. - nodestringquery
Edge node that cached the entry. Case-sensitive as stored.
- pathstringquery
Match on the request path — substring, or a
*wildcard.
Responses
200A page of cached entries.
Content type: application/json
- rowsarray of CacheKeyRow
Item fields
- domain_idinteger
- domainstring
- hoststring
Exact request host, e.g.
sub.example.com. - pathstring
Exact request path, e.g.
/assets/app.js. - querystring
Raw query string, without the leading
?. - variantstring
Cache-key suffix separating this entry from other variants of the same URL (device, image format, CORS origin, …). Empty for the plain variant.
- methodstring
- nodestring
Edge node that cached it.
- hostnamestring
Storage namespace host —
*.example.comfor a wildcard record. - store_pathstring
Raw stored path. Needed for purging; not for display.
- key_hashstring
Hash identifying the stored object. Needed for purging and downloading.
- encstring
Stored content-encoding variant:
id(identity),gzorbr— one URL can be stored once per encoding. Empty on entries written before per-encoding storage. - cache_keystring
The full cache key the edge computed for the request.
- sizeinteger
Bytes.
- cached_atstring (date-time)
- expires_atstring (date-time)
- totalinteger
Entries matching the filters.
0whencount=0was sent. - limitinteger
- offsetinteger
- count_skippedboolean
Present (
true) whencount=0was sent andtotalwas not computed.
{
"rows": [
{
"domain_id": 0,
"domain": "string",
"host": "string",
"path": "string",
"query": "string",
"variant": "string",
"method": "string",
"node": "string",
"hostname": "string",
"store_path": "string",
"key_hash": "string",
"enc": "string",
"cache_key": "string",
"size": 0,
"cached_at": "2026-01-01T00:00:00Z",
"expires_at": "2026-01-01T00:00:00Z"
}
],
"total": 0,
"limit": 0,
"offset": 0,
"count_skipped": true
}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"
}503The cache registry is temporarily unreachable.
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/cache/keys" \
-H "Authorization: Bearer $NSIN_API_KEY"