## List tenant accounts `client.tenants.accounts.list(stringtenantId, RequestOptionsoptions?): SinglePage` **get** `/tenants/{tenant_id}/accounts` List of accounts for the Tenant. ### Parameters - `tenantId: string` ### Returns - `TenantAccount` - `id: string` - `created_on: string` - `name: string | null` - `settings: Settings` - `abuse_contact_email: string | null` - `access_approval_expiry: string | null` - `api_access_enabled: boolean | null` - `default_nameservers: string | null` Use [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-list-dns-settings) instead. Deprecated. - `enforce_twofactor: boolean | null` - `use_account_custom_ns_by_default: boolean | null` Use [DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-an-account-list-dns-settings) instead. Deprecated. - `type: "standard" | "enterprise"` - `"standard"` - `"enterprise"` ### 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 }); // Automatically fetches more pages as needed. for await (const tenantAccount of client.tenants.accounts.list('tenant_id')) { console.log(tenantAccount.id); } ``` #### Response ```json { "errors": [], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": [ { "id": "id", "created_on": "2019-12-27T18:11:19.117Z", "name": "name", "settings": { "abuse_contact_email": "abuse_contact_email", "access_approval_expiry": "2019-12-27T18:11:19.117Z", "api_access_enabled": true, "default_nameservers": "default_nameservers", "enforce_twofactor": true, "use_account_custom_ns_by_default": true }, "type": "standard" } ], "success": true } ```