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

# useLinkEmail

```ts theme={null}
function useLinkEmail(): {
  linkEmail: (email: string, options?: {
     idempotencyKey?: string;
   }) => Promise<{
     flowId: string;
     message: string;
  }>;
};
```

A hook for linking an email account to the current user.

## Returns

An object containing the linkEmail function.

| Name          | Type                                                                                                                            |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `linkEmail()` | (`email`: `string`, `options?`: \{ `idempotencyKey?`: `string`; }) => `Promise`\<\{ `flowId`: `string`; `message`: `string`; }> |
