# tenant

**Scope required:** product:read

For a complete list of possible response fields see the [Tenant](https://docs.bunny.com/developer/api-reference/types/tenant) type.

```graphql
query tenant ($id: ID, $code: String, $format: String) {
  tenant (id: $id, code: $code, format: $format) {
    accountId
    code
    createdAt
    customFieldsData
    hasCustomFields
    id
    lastLogin
    lastSuccessfulWebhookAt
    lastWebhookStatus
    name
    platformId
    subdomain
    updatedAt
    userCount
    utilizationMetrics
  }
}
```

## Arguments

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| id     | ID     |             |
| code   | String |             |
| format | String |             |

## Response

* [Tenant](https://docs.bunny.com/developer/api-reference/types/tenant)
