# queryProfile

This method returns the list of all the training profiles of the user.

## Parameters

| Name        | Type     | Required | Description                                                               |
| ----------- | -------- | -------- | ------------------------------------------------------------------------- |
| cortexToken | `string` | yes      | A token returned by [authorize](/cortex-api/authentication/authorize.md). |

## Result

The result is an `array of objects` , or an empty array if the user has no profile. Each object includes these fields:

| uuid        | `string`  | The unique ID of this profile.                                                                                                                                                                                                                                                   |
| ----------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name        | `string`  | The name of the profile.                                                                                                                                                                                                                                                         |
| readOnly    | `boolean` | <p>If a headset is created before v3.6.5, the profile will become read-only when upgrading to v3.6.5. See <a href="/pages/4Cw7EjeE2b7arbTs4Wau">readonly profile</a>.<br><em>This field is available since v3.6.5.</em></p>                                                      |
| eegChannels | `array`   | <p>The list of EEG channels of a headset with which this profile can be loaded.<br>For example, if <code>eegChannels</code> of a profile is \["AF3","T7","Pz","T8","AF4"], this profile can be loaded for Insight headset.<br><em>This field is available since v3.6.5.</em></p> |

## Example

{% tabs %}
{% tab title="Request" %}

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "queryProfile",
    "params": {
        "cortexToken": "xxx"
    }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        {
            "uuid":"xxx"
            "name":"Profile A",
            "readOnly":false,
            "eegChannels":["AF3","T7","Pz","T8","AF4"]
        },
        {
            "uuid":"yyy"
            "name":"Profile B",
            "readOnly":true,
            "eegChannels":["AF3","F7","F3","FC5","T7","P7","O1","O2","P8","T8","FC6","F4","F8","AF4"]
        }
    ]
}
```

{% endtab %}
{% endtabs %}


---

# 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/bci/queryprofile.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.
