List Schema
Models written to Permify using the write schema API can be listed using this API with the timestamps at which the models were created.
Request needs to be made to the API endpoint /v1/schemas/list to list all the models.
Example Request on Postman
POST /v1/tenants/{tenant_id}/schemas/list
Path Parameters
Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.
Body
SchemaListRequest is the request message for the List method in the Schema service. It contains tenant_id for which the schemas are to be listed.
page_size is the number of tenants to be returned in the response. The value should be between 1 and 100.
continuous_token is an optional parameter used for pagination. It should be the value received in the previous response.
Response
continuous_token is a string that can be used to paginate and retrieve the next set of results.