Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve the list of all documents conforming the rules of the Statistics Definition.

Return a list of all documents.

get

Returns all documents.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 000000000000000000000001
Query parameters
pageIndexnumberOptional

The number of pages to skip before starting to collect the result set

Example: 0
pageSizenumberOptional

The numbers of items to return

Example: 20
Responses
200

Successful operation.

application/json
get/policy-statistics/{definitionId}/documents
GET /api/v1/policy-statistics/{definitionId}/documents HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": "000000000000000000000001",
    "policyId": "000000000000000000000001",
    "hash": "hash",
    "signature": 0,
    "status": "NEW",
    "tag": "Block tag",
    "type": "Document type",
    "createDate": "1900-01-01T00:00:00.000Z",
    "updateDate": "1900-01-01T00:00:00.000Z",
    "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
    "document": {
      "@context": [
        "text"
      ],
      "id": "00000000-0000-0000-0000-000000000000",
      "type": [
        "text"
      ],
      "verifiableCredential": [
        {}
      ],
      "proof": {}
    }
  }
]

Was this helpful?