Get a Tenant by Id
Get a specific tenant by its tenantId
.
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 Get Object endpoint instead.
Endpoint
GET /v1/tenants/:tenantId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
tenantId | Id of the tenant to retrieve. | URL param | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/tenants/87dffa3723df6d6a8" \
-H "Authorization: ApiKey YOUR_KEY"
tenant, err := tenant.Get("87dffa3723df6d6a8")
if err != nil {
// handle error
}
Tenant tenant = client.getTenant("87dffa3723df6d6a8");
const tenant = await warrantClient.Tenant.get("87dffa3723df6d6a8");
tenant = warrant.Tenant.get("87dffa3723df6d6a8")
tenant = Warrant::Tenant.get("87dffa3723df6d6a8")
$tenant = $warrant->getTenant("87dffa3723df6d6a8");
Response
{
"tenantId": "87dffa3723df6d6a8",
"name": "Dunder Mifflin"
}