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

# linkSms

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

Links a SMS account to the current user.

## Parameters

| Parameter | Type | Description |
| - | - | - |
| `phoneNumber` | `string` | The phone number to link. |
| `options?` | \{ `idempotencyKey?`: `string`; } | Optional options for the link operation. |
| `options.idempotencyKey?` | `string` | Optional idempotency key for safe retries. |

## Returns

`Promise`\<\{
`flowId`: `string`;
`message`: `string`;
}>

The result of the link SMS initiation.
