Get Records
GET /policies/{policyId}/grids/{gridId}/records
Returns the grid's filtered, paginated document set as seen by the caller's role. Every record includes _actions — the actionId values the caller's role may invoke on this grid.
Note:
_actionslists the actions available to the caller's role on this grid, applied uniformly across all returned records. Whether a specific record's current workflow state supports a given action is validated at execution time (see Execute Action).
Authentication
Requires a valid Guardian JWT bearer token. The caller must hold at least one of:
POLICIES_POLICY_EXECUTEPOLICIES_POLICY_MANAGE
Request
Path Parameters
policyId
string
Yes
MongoDB ObjectId of the running policy
Query Parameters
page
integer
No
1
—
1-based page number
pageSize
integer
No
20
200
Results per page
Note:
page/pageSizeare enforced consistently for every grid, regardless of how its underlying data source is configured. The response always includespage,pageSize,totalCount,hasNextPage, andhasPreviousPage.
Response
Success Response
Status: 200 OK
data
array
VC document records visible to the caller
data[].owner
string
DID of the document owner
data[].tag
string
Policy block tag that produced the document
data[].option
object
Workflow option bag (e.g. { "status": "Submitted" })
data[].document
object
Cached credential subject fields
data[].createDate
string
ISO 8601 creation timestamp
data[].updateDate
string
ISO 8601 last update timestamp
data[]._actions
array
actionId values the caller's role may invoke on this grid, applied uniformly across records (see note above)
page
number
Current page (1-based)
pageSize
number
Results per page
totalCount
number
Total matching records
hasNextPage
boolean
Whether a further page of records exists
hasPreviousPage
boolean
Whether a prior page of records exists
Note: Use
_id(notid) as therecordIdpath parameter in the execute call.
Error Responses
401 Unauthorized
JWT token missing or invalid
403 Forbidden
Insufficient permissions
404 Not Found
gridId not found in this policy
503 Service Unavailable
Policy instance not running, or grid not available to the caller's role
500 Internal Server Error
Unexpected server failure
Last updated