policies_get
GET
/policies/{policy_id}
const url = 'https://example.com/policies/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/policies/exampleGet a human-readable pretty-printed representation of a stored policy.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” policy_id
required
Base58-encoded SHA-256 hash digest (32 bytes)
string
Policy ID
Responses
Section titled “ Responses ”Policy pretty-print found
Media type text/plain
string
Policy not found
Media type application/json
object
message
required
string
Example generated
{ "message": "example"}Internal error
Media type application/json
object
message
required
string
Example generated
{ "message": "example"}