Prerequisite Steps
Before calling any Policy API endpoint, complete the following setup steps.
1. Register a Standard Registry Account
POST /api/v1/accounts/register
{
"username": "example_user",
"password": "examplePassword123",
"role": "STANDARD_REGISTRY"
}Response 201 Created:
{
"username": "example_user",
"role": "STANDARD_REGISTRY"
}2. Obtain a Bearer Token
POST /api/v1/accounts/login
Response 200 OK:
Use the accessToken value as the Bearer token in the Authorization header for all subsequent requests:
3. Create a Hedera Account (Demo)
GET /api/v1/demo/random-key
4. Set Up the Standard Registry Profile
PUT /api/v1/profile
5. Create and Publish a Schema
Create a schema via POST /api/v1/schemas with the schema document, then publish it via PUT /api/v1/schemas/{schemaId}/publish with body { "version": "1.0.0" }.
6. Create a Token
POST /api/v1/tokens
Response 201 Created:
Base URL
All policy endpoints are relative to:
Pagination
Endpoints that return lists support standard pagination query parameters:
pageIndex
number
0
Zero-based page index
pageSize
number
20
Number of items per page
The total item count is returned in the X-Total-Count response header.
Was this helpful?