# `getSafesByOwner`

Returns the list of Safes where the address provided is an owner.

## Usage


<Tabs items={['example.ts', 'setup.ts']}>
  <Tabs.Tab>
    ```typescript
    import { apiKit } from './setup.ts'

    const ownerAddress = '0x...'

    const decodedData = await apiKit.getSafesByOwner(ownerAddress)
    ```
  </Tabs.Tab>
  <Tabs.Tab>
    ```typescript
    import SafeApiKit from '@safe-global/api-kit'

    // How to get an Api key => http://docs.safe.global/core-api/how-to-use-api-keys
    export const apiKit = new SafeApiKit({
      chainId: 1n, // Mainnet
      apiKey: 'YOUR_API_KEY'
    })
    ```
  </Tabs.Tab>
</Tabs>


## Returns

`Promise<OwnerResponse>`

The list of Safes where the address provided is an owner.

## Parameters

### `ownerAddress`

- **Type:** `string`

The owner address.

```typescript focus=2
const decodedData = await apiKit.getSafesByOwner(
  '0x...'
)
```
