POST /v1/tenants/{tenant_id}/schemas/read
Returns the full SchemaDefinition for the requested schema version. If no version is specified in the metadata, the latest (head) schema is returned.
Schema versions are produced by the Write Schema endpoint and can be listed with the List Schema endpoint.
Path Parameters
The tenant identifier. Use
t1 for single-tenant deployments. Must match ^([a-zA-Z0-9_\-@\.:+]{1,128}|\*)$.Request Body
Response
The
SchemaDefinition object representing the authorization model, including all entity definitions, relations, attributes, and actions.Example
Error Codes
| HTTP Status | Description |
|---|---|
400 | Bad request — invalid metadata |
401 | Unauthorized |
404 | Tenant or schema version not found |
429 | Rate limit exceeded |
500 | Internal server error |