# Headsets

After you finish the [authentication](/cortex-api/authentication.md) process, your application should start headset scanning to search for EMOTIV headsets, using the method [controlDevice](/cortex-api/headset/controldevice.md) with "refresh" command, then use the method [queryHeadsets](/cortex-api/headset/queryheadsets.md) to get the discovered headsets.

If the headset is not connected to Cortex yet, then you must call [controlDevice](/cortex-api/headset/controldevice.md) with "connect" command.

See also [Headset object](/cortex-api/headset/headset-object.md) for details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emotiv.gitbook.io/cortex-api/headset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
