> For the complete documentation index, see [llms.txt](https://emotiv.gitbook.io/cortex-library-for-mobile/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emotiv.gitbook.io/cortex-library-for-mobile/jsonapi/accept-license.md).

# acceptLicense

When users any Emotiv app or any apps using Cortex lib SDK, users must accept Emotiv's licensing agreement. The developer should develop an UI to ask user to accept it, if the users agrees, call `acceptLicense` API.

An EmotivID user must only accept once until we change the licensing agreement.

## Parameters

| Name        | Type     | Description                                                                                            |
| ----------- | -------- | ------------------------------------------------------------------------------------------------------ |
| cortexToken | `string` | The token returned from [authorize](https://emotiv.gitbook.io/cortex-api/authentication/authorize) API |

## Result

The result is an object with these fields:

| Name     | Type      | Description                                        |
| -------- | --------- | -------------------------------------------------- |
| accepted | `boolean` | should be `true`                                   |
| message  | `string`  | shoud be `"Accept License Agreement successfully"` |

## Example

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

```javascript
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "acceptLicense",
  "params": {
    "cortexToken":"a token here"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "message": "Accept License Agreement successfully",
    "accepted": true
  }
}
```

{% endtab %}
{% endtabs %}
