Skip to main content
POST /v1/tenants/list Returns a paginated list of all tenants registered in this Permify instance.

Request Body

page_size
integer
Number of tenants to return per page. Must be >= 1.
continuous_token
string
Pagination token from a previous response. Omit for the first page.

Response

tenants
array
The list of tenants.
continuous_token
string
Pagination token for the next page. Empty when there are no more results.

Example

curl --location --request POST 'localhost:3476/v1/tenants/list' \
--header 'Content-Type: application/json' \
--data-raw '{
    "page_size": 20,
    "continuous_token": ""
}'
Request body
{
  "page_size": 20,
  "continuous_token": ""
}
Response
{
  "tenants": [
    {
      "id": "t1",
      "name": "Default Tenant",
      "created_at": "2023-01-01T00:00:00Z"
    },
    {
      "id": "acme",
      "name": "Acme Corp",
      "created_at": "2024-01-15T10:30:00Z"
    }
  ],
  "continuous_token": ""
}

Error Codes

HTTP StatusDescription
400Bad request
401Unauthorized
429Rate limit exceeded
500Internal server error

Build docs developers (and LLMs) love