> ## Documentation Index
> Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getCustomHeaderItems()

Retrieves the current set of custom header items that are configured in the chat widget. You can use the output to access and inspect the custom menu items that are currently displayed in the chat header.

## Syntax

```javascript theme={null}
const items = instance.getCustomHeaderItems();
```

## Parameters

<ParamField path="None" />

## Returns

<ResponseField name="CustomHeaderItem[]">
  Returns an array of custom header item objects currently configured in the chat.
</ResponseField>

## Examples

The following example gets current custom header items:

```javascript theme={null}
// Get current custom header items
const currentItems = instance.getCustomHeaderItems();
console.log('Current header items:', currentItems);

// Check if a specific item exists
const hasHelpButton = currentItems.some(item => item.id === 'help-button');
```

<Card title="Do you need practical examples?" icon="text-align-start" href="https://www.ibm.com/docs/SSAVQO/deploy/web_chat_agent/tutorials/tutorials_lp.html" arrow="true" cta="Learn with walk-throughs" horizontal>
  Learn how to apply the features available for embedded chat into your implementation with guidance and examples.
</Card>
