Schema Creation APIs
Base URL: /api/v1
These APIs allow Standard Registry users to manage schemas β create, update, publish, import, export, and delete schemas associated with Guardian policies.
Authentication: All endpoints require a valid JWT Bearer token (Authorization: Bearer <token>). Obtain a token via POST /accounts/login.
Endpoints
GET
/schemas
List all schemas (paginated)
Yes
GET
/schema/{schemaId}
Get schema by ID
Yes
GET
/schemas/{topicId}
List schemas by topic
Yes
POST
/schemas/{topicId}
Create new schema under a topic
Yes
PUT
/schemas/
Update an existing schema
Yes
DELETE
/schemas/{schemaId}
Delete a schema
Yes
PUT
/schemas/{schemaId}/publish
Publish schema to IPFS
Yes
GET
/schemas/{schemaId}/export/message
Export schema message IDs
Yes
GET
/schemas/{schemaId}/export/file
Export schema as zip file
Yes
POST
/schemas/{topicId}/import/message
Import schema from IPFS
Yes
POST
/schemas/{topicId}/import/file
Import schema from zip file
Yes
POST
/schemas/import/message/preview
Preview schema from IPFS before import
Yes
POST
/schemas/import/file/preview
Preview schema from zip before import
Yes
Endpoint Details
Listing of Schema β
GET /schemasReturning Schema by SchemaID β
GET /schema/{schemaId}Returns All Schemas Related to the Topic β
GET /schemas/{topicId}Creation of Schema Related to the Topic β
POST /schemas/{topicId}Updating Schema β
PUT /schemas/Deleting a Schema β
DELETE /schemas/{schemaId}Publishing Schema Based on Schema ID β
PUT /schemas/{schemaId}/publishExport Schema Message IDs β
GET /schemas/{schemaId}/export/messageExport Schema as Zip β
GET /schemas/{schemaId}/export/fileImport Schema from IPFS β
POST /schemas/{topicId}/import/messageImport Schema from Zip β
POST /schemas/{topicId}/import/fileSchema Preview from IPFS β
POST /schemas/import/message/previewSchema Preview from Zip β
POST /schemas/import/file/preview
See Prerequisite Steps for authentication setup.
Last updated