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

# Daily.getCallInstance()

> Returns a valid DailyCall instance by call client ID, or the current instance if no ID is provided.

`Daily.getCallInstance(callClientId?)`

Returns a valid `daily-js` call instance. If `callClientId` is provided, returns the instance with that ID. If omitted, returns the first instance created. When running [multiple call instances](/docs/daily-js/guides/multi-instance) simultaneously, always pass a `callClientId` to avoid ambiguity. Returns `undefined` if no matching valid instance exists. An instance becomes invalid once [`destroy()`](/reference/react-native/instance-methods/destroy) has been called on it.

## Parameters

<ParamField body="callClientId" type="string">
  Optional. The `callClientId` of the specific instance to retrieve. When running [multiple call instances](/docs/daily-js/guides/multi-instance) simultaneously, use this to look up a specific one.
</ParamField>

## Return value

Returns the matching [`DailyCall`](/reference/react-native/daily-call-client) instance, or `undefined` if no valid instance exists for the given ID (or no instance exists at all when called without an argument).

## Example

```javascript theme={null}
console.log(Daily.getCallInstance()); // undefined — no instance yet

const call = Daily.createCallObject();
console.log(Daily.getCallInstance() === call); // true

// With multiple instances, omitting the ID returns the first one created
const callA = Daily.createCallObject();
const callB = Daily.createCallObject();
console.log(Daily.getCallInstance() === callA); // true — callA was created first

// Pass a callClientId to retrieve a specific instance
console.log(Daily.getCallInstance(callB.callClientId()) === callB); // true

callA.destroy();
console.log(Daily.getCallInstance(callA.callClientId())); // undefined — destroyed
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [Daily.createCallObject()](/reference/react-native/daily-call-client/create-call-object)
    * [destroy()](/reference/react-native/instance-methods/destroy)
    * [isDestroyed()](/reference/react-native/instance-methods/is-destroyed)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Multiple call instances](/docs/daily-js/guides/multi-instance)
  </Card>
</CardGroup>
