> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ListAccountsRequest

> ListAccountsRequest API reference.

Package: [`com.coinbase.cdp.resources.accounts.requests`](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/accounts/requests/index)

```java theme={null}
public final class ListAccountsRequest extends Object
```

## Method Details

### `getOwner`

```java theme={null}
public Optional<List<String>> getOwner()
```

**Returns:**

`Optional<List<String>>` - Filter accounts by owner. Values can be specific Owner IDs or owner type wildcards. Multiple values can be combined as a comma-separated list.

**Specific Owner IDs:**

`entity_<uuid>` - Accounts owned by a specific entity `customer_<uuid>` - Accounts owned by a specific customer

**Owner type wildcards:**

`entity` - All entity-owned accounts `customer` - All customer-owned accounts

**Examples:**

`owner=customer_af29...` - A specific customer's accounts `owner=customer` - All customer accounts `owner=entity,customer_af29...` - Entity accounts and a specific customer's accounts When omitted, accounts with any owner are returned.

### `getPageSize`

```java theme={null}
public Optional<Integer> getPageSize()
```

**Returns:**

`Optional<Integer>` - The number of resources to return per page.

### `getPageToken`

```java theme={null}
public Optional<String> getPageToken()
```

**Returns:**

`Optional<String>` - The token for the next page of resources, if any.

### `getType`

```java theme={null}
public Optional<AccountType> getType()
```

**Returns:**

`Optional`\<[AccountType](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/AccountType.md)> - Filter accounts by account type. When omitted, accounts of any type are returned. Combined with `owner` using AND.

### `equals`

```java theme={null}
public boolean equals(Object other)
```

**Overrides:**

`[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Parameters:**

`other` - `Object`

**Returns:**

`boolean`

### `getAdditionalProperties`

```java theme={null}
public Map<String,Object> getAdditionalProperties()
```

**Returns:**

`Map<String,Object>`

### `hashCode`

```java theme={null}
public int hashCode()
```

**Overrides:**

`[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`int`

### `toString`

```java theme={null}
public String toString()
```

**Overrides:**

`[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`String`

### `builder`

```java theme={null}
public static ListAccountsRequest.Builder builder()
```

**Returns:**

[ListAccountsRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/accounts/requests/ListAccountsRequest.md).`Builder`
