# Network Usage

## Get

<mark style="color:blue;">`GET`</mark> `https://api.suble.io/projects/:projectId/vm/:vmId/networkusage/:interval/:type`

Retrieve image of network usage graph

#### Path Parameters

| Name      | Type   | Description                       |
| --------- | ------ | --------------------------------- |
| projectId | string | Unique Id for the project         |
| vmId      | string | Unique Id for the virtual machine |
| interval  | string | Options: Daily, Weekly & Monthly  |
| type      | string | Options: Send & Receive           |

#### Headers

| Name          | Type   | Description           |
| ------------- | ------ | --------------------- |
| Authorization | string | Project or user token |

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

```
//Returns image of graph
```

{% endtab %}

{% tab title="500 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
