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

# wait_for_sms

> Poll the persona inbox until at least one SMS matches, e

g. to read a 2FA code.

```python theme={null}
sms = persona.wait_for_sms(only_unread=True, timeout=120)
```

Raises `TimeoutError` if nothing arrives within `timeout` seconds. Listed SMS are marked as read

## Parameters

**timeout** `float` (default: 60.0)

**poll\_interval** `float` (default: 5.0)

**limit** `int`

Max number of emails to return

**timedelta** `datetime.timedelta | None`

Return only emails that are not older than `timedelta`

**only\_unread** `bool`

**mark\_read** `bool`

## Returns

`Sequence`\[[`SMSResponse`](https://docs.notte.cc/sdk-reference/misc/smsresponse.md)]


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.