List Tenants
List all of the tenants in a database.
List Tenants Request
cURL
GET- /workspaces/:workspaceSlug/databases/:databaseName/tenants
curl 'https://api.thenile.dev/workspaces/<string>/databases/<string>/tenants' \
--header 'Authorization: Bearer <string>'
The response includes the id and name of every tenant in the database.
List Tenants Response
200
[
{
"id": "018b61ec-af9e-77e5-b27f-77239cd4a0bc",
"name": "Tenant Zero"
},
{
"id": "018b61eb-2051-7625-a762-2ce45c7c6c51",
"name": "Tenant One"
}
]