---
url: /api/formats/scope/src/functions/getScope.md
---
[pantoken-root](../../../../index.md) / [formats/scope/src](../index.md) / getScope

# Function: getScope()

> **getScope**(`instanceId?`, `doc?`): [`PantokenScope`](../interfaces/PantokenScope.md) | `undefined`

Beta

The scope registered for `instanceId` in `doc`, if any.

## Parameters

### instanceId?

`string` = `DEFAULT_INSTANCE`

### doc?

`Document` = `document`

## Returns

[`PantokenScope`](../interfaces/PantokenScope.md) | `undefined`
