Get Tenants
Get list of tenants.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the List Objects endpoint instead.
Endpoint
GET /v1/tenants
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/tenants" \
-H "Authorization: ApiKey YOUR_KEY"
tenants, err := tenant.ListTenants(&warrant.ListTenantParams{
ListParams: warrant.ListParams{
Limit: 10,
},
})
if err != nil {
// handle error
}
ListResult<Tenant> tenants = client.listTenants(new ListParams().withLimit(10));
warrantClient.User.list({ limit: 10 });
tenants = warrant.Tenant.list({"limit": 10})
tenants = Warrant::Tenant.list({ limit: 10 })
warrant list tenants
Response
[
{
"tenantId": "dunder-mifflin",
"name": "Dunder Mifflin"
},
{
"tenantId": "In2sgYSjVG8etPU2",
"name": "tenant-name"
},
{
"tenantId": "In2sgYSjcktPU235",
"name": "tenant-name2"
}
]