POST
/
v1
/
tenants
/
{tenant_id}
/
schemas
/
list

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

tenant_id
string
required

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

application/json

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
integer

page_size is the number of tenants to be returned in the response. The value should be between 1 and 100.

continuous_token
string

continuous_token is an optional parameter used for pagination. It should be the value received in the previous response.

Response

200 - application/json
head
string
schemas
object[]
continuous_token
string

continuous_token is a string that can be used to paginate and retrieve the next set of results.