## Get tenant `client.tenants.get(stringtenantId, RequestOptionsoptions?): Tenant` **get** `/tenants/{tenant_id}` Retrieves a Tenant by Tenant ID. ### Parameters - `tenantId: string` ### Returns - `Tenant` - `cdate: string` - `edate: string` - `tenant_contacts: TenantContacts` - `email?: string` - `website?: string` - `tenant_labels: Array` - `tenant_metadata: TenantMetadata` - `dns?: DNS` - `ns_pool: NSPool` - `primary?: string` - `secondary?: string` - `tenant_name: string` - `tenant_network: unknown` - `tenant_status: string` - `tenant_tag: string` - `tenant_type: string` - `tenant_units: Array` - `unit_memberships: Array` - `unit_metadata: unknown` - `unit_name: string` - `unit_status: string` - `unit_tag: string` - `customer_id?: string` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiEmail: process.env['CLOUDFLARE_EMAIL'], // This is the default and can be omitted apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted }); const tenant = await client.tenants.get('tenant_id'); console.log(tenant.customer_id); ``` #### Response ```json { "errors": [], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "cdate": "2019-12-27T18:11:19.117Z", "edate": "2019-12-27T18:11:19.117Z", "tenant_contacts": { "email": "email", "website": "website" }, "tenant_labels": [ "string" ], "tenant_metadata": { "dns": { "ns_pool": { "primary": "primary", "secondary": "secondary" } } }, "tenant_name": "tenant_name", "tenant_network": {}, "tenant_status": "tenant_status", "tenant_tag": "tenant_tag", "tenant_type": "tenant_type", "tenant_units": [ { "unit_memberships": [ {} ], "unit_metadata": {}, "unit_name": "unit_name", "unit_status": "unit_status", "unit_tag": "unit_tag" } ], "customer_id": "customer_id" }, "success": true } ```