# version

[[Source]](https://github.com/XRPLF/rippled/blob/master/src/xrpld/rpc/handlers/Version.h)

The `version` command retrieves the API version information for the rippled server. For `Clio` servers, see [`version` (`clio`)](/docs/references/http-websocket-apis/public-api-methods/clio-methods/version) instead.

## Request Format

An example of the request format:

WebSocket

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

JSON-RPC

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

Commandline

```sh
#Syntax: version
rippled version
```

The request does not takes any parameters.

## Response Format

An example of a successful response:

WebSocket

```json
{
  "result": {
    "version": {
      "first": "1.0.0",
      "good": "1.0.0",
      "last": "1.0.0"
    }
  },
  "status": "success",
  "type": "response"
}
```

JSON-RPC

```json
200 OK

{
  "result": {
    "version": {
      "first": "1.0.0",
      "good": "1.0.0",
      "last": "1.0.0"
    }
  },
  "status": "success",
  "type": "response"
}
```

Commandline

```json
{
  "result": {
    "version": {
      "first": "1.0.0",
      "good": "1.0.0",
      "last": "1.0.0"
    }
  },
  "status": "success",
  "type": "response"
}
```

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

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

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


## Possible Errors

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