# Get a Tenant

`GET https://api.agilitycredit.net/v3/tenants/{id}`

Docs page: https://apidocs.agilitycredit.com/api/get-tenant · Tag: Administration

Returns the account details of a tenant. You can get your own tenant or any tenant you are an integrator of, such as the ones you created.

Authentication: `Authorization: Bearer <api key>`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | ID of the tenant. |
| `Agc-Tenant-Id` | header | yes | The tenant ID provided by Agility Credit. |
| `Agc-User-Id` | header | yes | The requestor user ID. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | Tenant | TenantResponse |
| 400 | Bad Request | BadRequestResponse |
| 401 | Unauthorized | UnauthorizedResponse |
| 404 | The tenant does not exist, or it is neither your own tenant nor one you are an integrator of. | TenantErrorResponse |
| 429 | Too Many Requests | TooManyRequestsResponse |
| 500 | Internal Server Error | AgilityServerErrorResponse |
Top-level 200 fields: `tenant_id`, `account_name`, `legal_name`, `address_billing`, `address_physical`, `phone_number`, `website`, `tax_id`, `company_established_date`, `timezone`, `subdomain`, `market`, `enduser_type`, `nature_of_business`, `primary_title`, `inspection_email`, `inspection_full_name`, `inspection_phone`, `inspection_title`, `ip_whitelist`, `product_addons`, `parent_id`, `status`, `type`, `created_at`, `updated_at`.

### Error bodies

400:

```json
{
  "status": "Bad Request - Invalid Parameters",
  "error": "Failed schema validation. Error: data.pull_type must be one of ['prequal', 'hard'], Path: ['data', 'pull_type'], Data: prequalification"
}
```

401:

```json
{
  "message": "Unauthorized"
}
```

404:

```json
{
  "error": "Tenant Not Found"
}
```

429:

```json
{
  "error": "Too Many Requests"
}
```

500:

```json
{
  "message": "Agility Server Error"
}
```
