> For the complete documentation index, see [llms.txt](https://earnbit.gitbook.io/earnbit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://earnbit.gitbook.io/earnbit/developers/exchange-api-documentation/private-methods-or-websoket/authorization.md).

# Authorization

#### Method

```javascript
server.auth
```

#### Request "params" parameters

|  Name  |  Type  | Desciption                                                                                                                                                                        | Example |
| :----: | :----: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|  token | STRING | WebSocket token (to get your WS token see [Authentication and API Keys](/earnbit/developers/exchange-api-documentation/private-endpoints-or-http/authentication-and-api-keys.md)) | -       |
| source | STRING | Custom configuration for the understanding source of the request                                                                                                                  | web     |

#### Request example

```javascript
{
  "method":"server.auth",
  "params":
    [
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",  // token
      "web"                                                            // source
    ], 
  "id":1
}
```

#### Response "result" parameters

|  Name  |  Type  |
| :----: | :----: |
| status | STRING |

#### Response example

```javascript
{
    "id": 1,
    "params": [],
    "result": {
        "status": "success"
    },
    "error": null
}
```
