# getCurrentProfile

This method returns the training profile that is currently loaded for a specific headset.

## Parameters

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

## Result

The result is an object containing these fields:

| Name            | Type      | Description                                                                                                                                                                           |
| --------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name            | `string`  | The name of the loaded profile, or `null` if no profile was loaded for this headset.                                                                                                  |
| loadedByThisApp | `boolean` | <p><code>true</code> if the profile was loaded by your application, <code>false</code> if it was loaded by another application.</p><p><em>This field was added in Cortex 2.1</em></p> |

## Examples

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

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "getCurrentProfile",
    "params": {
        "cortexToken": "xxx",
        "headset": "EPOCPLUS-12341234"
    }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "name": "my profile",
        "loadedByThisApp": true
    }
}
```

{% 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/getcurrentprofile.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.
