> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.airtop.ai/api-reference/airtop-api/extras/wait-for-session-ready/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.airtop.ai/_mcp/server. Manually wait for a session to be ready. ### Parameters **`id`** `string` — required The unique identifier of the session. --- **`requestOptions`** `Windows.RequestOptions` Additional options to customize the request behavior. #### + Show 3 properties **`timeoutInSeconds`** `number` The maximum time to wait for a response in seconds. --- **`maxRetries`** `number` The number of times to retry the request. Defaults to 2. --- **`abortSignal`** `AbortSignal` A hook to abort the request. --- --- ### Returns Returns a Promise that resolves when the session is ready **`Typescript`** ```javascript title="Typescript" import { AirtopClient } from '@airtop/sdk'; const client = new AirtopClient({ apiKey: AIRTOP_API_KEY }); const { data: session } = await client.sessions.create({ configuration: { skipWaitSessionReady: true, }, }); await client.sessions.waitForSessionReady(session.id); ``` **`Python`** ```python title="Python" from airtop import Airtop, SessionConfig client = Airtop(api_key=api_key, environment=airtop_environment) configuration = SessionConfig(skip_wait_session_ready=True) session = client.sessions.create(configuration=configuration) client.sessions.wait_for_session_ready(session_id=session.data.id) ```