# Full Node

## Get all full nodes

<mark style="color:blue;">`GET`</mark> `https://www.allnodes.com/api/v1/fullnode`

This endpoint allows to get list of all your hosted full nodes and sentry nodes.

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer TOKEN |

{% tabs %}
{% tab title="200: OK " %}

```javascript
[
  {
    id: number;
    fqdn: string;
    name: string;
    currencySymbol: string;
    createdAt: string;
    mode: 'fullnode' | 'sentry';
    instances: [{
      slug: string;
      version: string;
      blockHeight: number | null;
      startedAt: string | null;
    }];
  }
]
```

{% endtab %}
{% endtabs %}

## Get a full node

<mark style="color:blue;">`GET`</mark> `https://www.allnodes.com/api/v1/fullnode/{id}`

This endpoint allows to get info about specific full node or sentry node on your account.

#### Path Parameters

<table><thead><tr><th>Name</th><th width="209">Type</th><th>Description</th></tr></thead><tbody><tr><td>id<mark style="color:red;">*</mark></td><td>string</td><td>Full node you want to get info about. ID can be extracted from the “Get all full nodes” call</td></tr></tbody></table>

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer TOKEN |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  id: number;
  fqdn: string;
  name: string;
  currencySymbol: string;
  createdAt: string;
  mode: 'fullnode' | 'sentry';
  instances: [{
    slug: string;
    version: string;
    blockHeight: number | null;
    startedAt: string | null;
  }];
}
```

{% endtab %}

{% tab title="404: Not Found Full node not found" %}

```javascript
{
  "error": "NODE_NOT_FOUND" 
}
```

{% endtab %}
{% endtabs %}

## Restart a full node

<mark style="color:green;">`POST`</mark> `https://www.allnodes.com/api/v1/fullnode/{id}/restart`

This endpoint allows you to restart your full node.

This feature is available only for Advanced or Enterprise plan nodes.

#### Path Parameters

<table><thead><tr><th>Name</th><th width="209">Type</th><th>Description</th></tr></thead><tbody><tr><td>id<mark style="color:red;">*</mark></td><td>string</td><td>Full node you want to restart. ID can be extracted from the “Get all full nodes” call</td></tr></tbody></table>

**Headers**

| Name                                            | Type   | Value        |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer TOKEN |

**Response**

{% tabs %}
{% tab title="204: No Content Full node successfully restarted." %}

```json
```

{% endtab %}

{% tab title="403: Forbidden Full node can not be restarted." %}

```json
{
  "error": "FORBIDDEN"
}
```

{% endtab %}
{% endtabs %}
