Returns Policies
Returns policies
Query parameters
pageIndexnumberOptionalExample:
Page index
0
pageSizenumber Β· max: 100OptionalExample:
Page size
10
orderFieldstringOptionalExample:
Order field
consensusTimestamp
orderDirstringOptionalExample:
Order direction
{"value":"ASC","description":"Ascending ordering"}
keywordsstringOptionalExample:
Keywords to search
{"description":"Search policies, which are related to specific topic identifier","value":"[\"0.0.1960\"]"}
topicIdstringOptionalExample:
Policy topic identifier
0.0.1960
options.ownerstringOptionalExample:
Policy owner
did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265
analytics.toolsstringOptionalExample:
Tool
1706823227.586179534
Responses
200
Policies
application/json
Responseall of
and
500
Internal server error
application/json
get
GET /api/v1/entities/policies HTTP/1.1
Host:
Accept: */*
{
"pageIndex": "0",
"pageSize": "10",
"total": "100",
"order": {},
"items": [
{
"id": "667c240639282050117a1985",
"topicId": "0.0.4481265",
"consensusTimestamp": "1706823227.586179534",
"owner": "0.0.1",
"uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
"status": "NEW",
"statusReason": "Revoked",
"lang": "en-US",
"responseType": "str",
"statusMessage": "text",
"files": [
"QmYtKEVfpbDwn7XLHjnjap224ESi3vLiYpkbWoabnxs6cX"
],
"topics": [
"0.0.4481265"
],
"tokens": [
"0.0.4481265"
],
"type": "Policy",
"action": "publish-policy",
"options": {
"uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
"name": "Verra REDD",
"description": "Verra REDD Policy",
"topicDescription": "Verra REDD Policy Topic",
"version": "1.0.0",
"policyTag": "Verra_REDD",
"owner": "did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265",
"policyTopicId": "0.0.4481265",
"instanceTopicId": "0.0.4481265",
"synchronizationTopicId": "0.0.4481265",
"discontinuedDate": "2024-02-27T16:32:08.513Z"
},
"analytics": {
"owner": "did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265",
"tokens": [
"0.0.4481265"
],
"vcCount": 10,
"vpCount": 10,
"tokensCount": 10,
"tags": [
"iRec"
],
"hash": "DdQweGpEqbWgQUZcQjySQn2qYPd3yACGnSoRXiuLt5or",
"hashMap": {},
"tools": [
"1706823227.586179534"
],
"registryId": "1706823227.586179534",
"textSearch": "text"
}
}
]
}
Last updated