# version

[[Source]](https://github.com/XRPLF/clio/blob/develop/src/rpc/handlers/VersionHandler.hpp)

The `version` command retrieves the API version information of the [Clio server](/docs/concepts/networks-and-servers/the-clio-server). For `rippled` servers, see [`version` (`rippled`)](/docs/references/http-websocket-apis/public-api-methods/server-info-methods/version) instead. New in: Clio v2.0.0

## Request Format

An example of the request format:

WebSocket

```json
{
    "command": "version"
}
```

JSON-RPC

```json
{
    "method": "version",
    "params": [
        {}
    ]
}
```

The request does not take any parameters.

## Response Format

An example of a successful response:

WebSocket

```json
{
  "result": {
    "version": {
      "first": 1,
      "last": 2,
      "good": 1
    }
  },
  "status": "success",
  "type": "response",
  "warnings": [
    {
      "id": 2001,
      "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
    }
  ]
}
```

JSON-RPC

```json
200 OK

{
    "result": {
      "version": {
        "first": 1,
        "last": 2,
        "good": 1
      }
    },
    "status": "success",
    "type": "response",
    "warnings": [
        {
            "id":2001,
            "message":"This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
        }
    ]
}
```

The response follows the [standard format](/docs/references/http-websocket-apis/api-conventions/response-formatting), with a successful result containing an `info` object as its only field.

The `version` object returns some arrangement of the following fields:

| `Field` | Type | Description |
|  --- | --- | --- |
| `first` | Integer | Lowest supported API release |
| `last` | Integer | Highest supported API release |
| `good` | Integer | Default API if none specified |


## Possible Errors

* Any of the [universal error types](/docs/references/http-websocket-apis/api-conventions/error-formatting#universal-errors).