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

Policy Creation APIs

Base URL: /api/v1

These APIs enable Standard Registry users to create, configure, publish, and manage Guardian policies. Users and auditors can also interact with running policies via block and group endpoints.

Authentication: All endpoints require a valid JWT Bearer token (Authorization: Bearer <token>). Obtain a token via POST /accounts/login.

See Prerequisite Steps before getting started.


Endpoints

Method
Endpoint
Description
Auth Required

GET

/policies

List all policies

Yes

POST

/policies

Create a new policy

Yes

GET

/policies/{policyId}

Get policy configuration

Yes

PUT

/policies/{policyId}

Update policy configuration

Yes

PUT

/policies/{policyId}/publish

Publish a policy

Yes

POST

/policies/validate

Validate policy configuration

Yes

GET

/policies/{policyId}/blocks

Get root policy block data

Yes

GET

/policies/{policyId}/blocks/{uuid}

Get block data by UUID

Yes

POST

/policies/{policyId}/blocks/{uuid}

Send data to a block

Yes

GET

/policies/{policyId}/tag/{tagName}

Get block ID by tag

Yes

GET

/policies/{policyId}/tag/{tagName}/blocks

Get block data by tag

Yes

POST

/policies/{policyId}/tag/{tagName}/blocks

Send data to block by tag

Yes

GET

/policies/{policyId}/groups

List groups for the current user

Yes

POST

/policies/{policyId}/groups

Set the active group

Yes

GET

/policies/{policyId}/export/file

Export policy as zip

Yes

GET

/policies/{policyId}/export/message

Export policy message ID

Yes

POST

/policies/import/file

Import policy from zip

Yes

POST

/policies/import/message

Import policy from IPFS

Yes

POST

/policies/import/message/preview

Preview policy from IPFS

Yes


Endpoint Details

Last updated