> ## 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.

# useLinkSms

```ts theme={null}
function useLinkSms(): {
  linkSms: (phoneNumber: string, options?: {
     idempotencyKey?: string;
   }) => Promise<{
     flowId: string;
     message: string;
  }>;
};
```

A hook for linking a SMS account to the current user.

## Returns

An object containing the linkSms function.

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