POST
/
v1
/
tenants
/
{tenant_id}
/
schemas
/
list
sr, err := client.Schema.List(context.Background(), &v1.SchemaListRequest{
    TenantId: "t1",
    PageSize: 20,
    ContinuousToken: "",
})
{
  "head": "<string>",
  "schemas": [
    {
      "version": "<string>",
      "created_at": "<string>"
    }
  ],
  "continuous_token": "<string>"
}

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.

Response

200
application/json
A successful response.

The response is of type object.