> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Login

> This method will return all licenses that belong to the user. This method can be called with an access token that has UserAuthNormal and UserAuthAdmin permission.

This method will return all licenses that belong to the user. This method can be called with an access token that has UserAuthNormal and UserAuthAdmin permission.

This method is accessed by [https://api.cryptolens.io/api/userauth/Login](https://api.cryptolens.io/api/userauth/Login)

### Parameters

| **Parameter** | **Description** | **Remarks** |
| - | - | - |
| Username | The username | required |
| Password | The password | required |
| v | Method version. | optional. by default, it's 1. |

### Results

| **Parameter** | **Description** | **Remarks** |
| - | - | - |
| LicenseKeys | The list of [license keys](/api-reference/generated/model/BasicLicenseKey) that belong to the user. | always returned |
| Result | This is either **0**(=success) or **1**(=error). | always returned |
| Message | The message that provides additional information about the result. | always returned. |

### Example results

```text theme={null}
{"result":0,"message":""}
```

### Errors

| **Error** |
| - |
| Access denied. |
| The input parameters were incorrect. |
| Unable to authenticate user. |
| No username or password supplied. |
