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

Policy Data

Query policy-committed VC documents.

get

Returns a paginated list of Verifiable Credential documents committed by a published Guardian policy. Intentionally restricted to audit/manage roles for cross-policy access; there is no per-participant filtering.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
policyIdstringRequired

MongoDB ObjectId of the published policy.

Example: 645f1e2d3a4b5c6d7e8f9012
schemaNamestringRequired

Schema name as returned by GET /schema (e.g. "MRV Data").

Example: MRV Data
filtersstringOptional

JSON-encoded filter map. Each key is a whitelisted system field or an option.* field. Each value is { "op": "<operator>", "value": <any> }. Supported operators: eq, ne, in, nin, gt, gte, lt, lte, contains (case-insensitive partial string match). For in/nin, value must be an array. For contains, value must be a string. System field whitelist: owner, assignedTo, assignedToGroup, group, hederaStatus, signature, type, draft, edited, disconnected, policyId, schema, tag, messageId, topicId, hash, createDate, updateDate, option.*. Example: {"hederaStatus":{"op":"eq","value":"ISSUE"}}

Example: {"hederaStatus":{"op":"eq","value":"ISSUE"},"option.status":{"op":"ne","value":"REJECTED"}}
pagenumberOptional

1-based page number (default: 1).

Example: 1
pageSizenumberOptional

Items per page (default: 20, max: 200).

Example: 20
sortstringOptional

Field to sort by. Prefix with - for descending order (default: -createDate). Example: createDate, -updateDate, owner.

Example: -createDate
Responses
200

Query executed successfully.

application/json
get/policy-data/query
GET /api/v1/policy-data/query?policyId=645f1e2d3a4b5c6d7e8f9012&schemaName=MRV+Data HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": "645f1e2d3a4b5c6d7e8f9012",
      "policyId": "645f1e2d3a4b5c6d7e8f1234",
      "schema": "#MRVData",
      "owner": "did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599",
      "hederaStatus": "ISSUE",
      "tag": "mrv_data_block",
      "createDate": "2026-01-15T10:30:00.000Z",
      "updateDate": "2026-01-15T10:30:00.000Z",
      "option": {
        "status": "APPROVED"
      },
      "document": {
        "id": "urn:uuid:example",
        "type": [
          "VerifiableCredential"
        ]
      }
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 20,
    "total": 42,
    "totalPages": 3
  },
  "query": {
    "policyId": "645f1e2d3a4b5c6d7e8f1234",
    "schemaName": "MRV Data",
    "appliedFilters": {
      "hederaStatus": {
        "op": "eq",
        "value": "ISSUE"
      }
    }
  }
}

Last updated