# 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](../authentication/authorize). |

## 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="readonly-profile">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 %}
