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

# endstate.collections.waitUntilActive

> Waits until the collection finishes provisioning. Throws EndstateTerminalStateError when provisioning fails, rather than polling a settled failure until the budget runs out.

```ts theme={null}
waitUntilActive(collectionId: string, options?: PollOptions): Promise<Collection>
```

This helper polls an existing read until it settles; it issues no endpoint of its own.

## Example

```ts theme={null}
const result = await endstate.collections.waitUntilActive(collection.id);
```
