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

# useTapParams

> Returns the route of the extension's own page: the page id, the whole sub-path, and one key per segment.

```ts theme={null}
function useTapParams(): Record<string, string>;
```

Returns the route of the extension's own page: the page id, the whole sub-path,
and one key per segment.

## Returns

`Record`\<`string`, `string`>

## Remarks

The host builds `pageId`, `path` and then `0`, `1` and so on, one per segment of
the sub-path. Only a page entry is routed, so this is empty for a widget, a tab,
a row action and a settings panel. Re-renders when the owner navigates inside the
page. Throws `TAP_OUTSIDE_HOST` outside a mount.

## Example

```tsx theme={null}
import { useTapParams } from '@tappify/extension-sdk';

function FunnelDetail() {
  const params = useTapParams();
  const funnelId = params['1'];
  return <span>{funnelId ?? params.path}</span>;
}
```
