POST
/
v1
/
tenants
/
{tenant_id}
/
schemas
/
list
sr, err: = client.Schema.List(context.Background(), &v1.SchemaListRequest {
    TenantId: "t1",
    PageSize: "10",
    ContinuousToken: "",
})

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

permify-schema

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
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.