Skip to content
v0.5.1GitHub

Using

Counts all documents of a domain (key scan only).

applies to v0.5.1
GET
/store-api/json/{domain}/documents/count
curl --request GET \
--url https://example.com/store-api/json/example/documents/count \
--header 'Authorization: Bearer <token>'
domain
required
string

JSON domain

Document count

Media typeapplication/json

Generic {"count": N} response, shared by JSON’s count_documents, KV’s count_keys, and rel’s count_rows — one schema instead of three identical ones.

object
count
required
integer format: int64

Example generated

{
"count": 1
}

Domain not found

Media typetext/plain
string

Domain is being deleted

Media typetext/plain
string

JSON engine disabled

Media typetext/plain
string