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

Retrieves Policy Configuration

GET /policies/{policyId}

Retrieves the full policy configuration object for the specified policy ID.

Authentication: Bearer token required (Authorization: Bearer <token>)

Permission: Permissions.POLICIES_POLICY_READ, Permissions.POLICIES_POLICY_EXECUTE, Permissions.POLICIES_POLICY_MANAGE, or Permissions.POLICIES_POLICY_AUDIT


Request

Path Parameters

Parameter
Type
Required
Description

policyId

string

Yes

The policy ID (MongoDB ObjectId, e.g. 63e3e5e8a01b3c001234abcd)


Response

Success Response

Status: 200 OK

{
  "id": "63e3e5e8a01b3c001234abcd",
  "name": "iREC Policy",
  "version": "1.0.0",
  "description": "iREC standard policy",
  "status": "DRAFT",
  "creator": "did:hedera:testnet:zHcDLGFNymFAJiMBKnpbHDgjvTn6yZnwkPPeFhtJBECH_0.0.4532001",
  "owner": "did:hedera:testnet:zHcDLGFNymFAJiMBKnpbHDgjvTn6yZnwkPPeFhtJBECH_0.0.4532001",
  "topicId": "0.0.4532001",
  "config": {}
}

Error Responses

Status
Description

401 Unauthorized

Missing or invalid token

403 Forbidden

Insufficient permissions

404 Not Found

Policy not found

500 Internal Server Error

Unexpected server failure

Last updated

Was this helpful?