# Usage

Metering and the plan of the organization

Source: https://slashinfra.com/docs/api-reference/control/usage
Last modified: 2026-11-30T16:36:19.000Z

Metering and the plan of the organization

Resource, request and plan limits are listed on [Limits](https://slashinfra.com/docs/reference/limits).

[Download OpenAPI specification](https://slashinfra.com/docs/control.openapi.json) · Version 0.1.0

[GETUsage of a project](https://slashinfra.com/docs/api-reference/control/usage#getUsage)

### Usage of a project

GET

/usage

Returns the node usage totals of one project, for all its SVMs together and for each SVM, between two times. The default range is the start of this UTC month to now; each running interval is billed in whole seconds rounded up.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/api).

#### Query Parameters

`project?`string

The project id or name, `default` when omitted; an unknown project answers 404 `project_not_found`.

`from?`string

The first time of the sum in Unix epoch milliseconds, rounded down to the start of its hour; the default is the start of this UTC month.

`to?`string

The last time of the sum in Unix epoch milliseconds, rounded up to the end of its hour; the default is now, and it must not be before `from`.

#### Response Body

The usage of the organization and of each SVM between two times.

`application/json`

- response

- response
- …

The usage of the organization and of each SVM between two times.

`from_ms*`integer

The first time of the sum in Unix epoch milliseconds: the start of the hour of `from`.

`plan*`

The plan of the organization and its limits.

`project*`string

The id of the project whose SVMs the node usage covers.

`svms*`array<>

The usage of each SVM of the organization that has a node usage record in the range, by id.

`to_ms*`integer

The last time of the sum in Unix epoch milliseconds: the end of the hour of `to`.

`totals*`

The totals of the seven node usage metrics and of retained object storage.

Example Request

```
curl -X GET 'https://api.slashinfra.com/usage'
```

Example ResponseSchema

```
{  "from_ms": 1767225600000,  "plan": {    "databases_allowed": false,    "dedicated_allowed": false,    "id": "standard",    "inbox_allowed": true,    "max_memory_mib": 8192,    "max_open_ports": 50,    "max_snapshots": 50,    "max_svms": 5,    "max_url_ttl_s": 2592000,    "public_ports_allowed": true,    "schedule_min_interval_s": 300,    "schedules_max": 10,    "stream_max_s": 3600  },  "project": "proj_6f1c0f0e8a",  "svms": [    {      "id": "6f1c0f0e8a",      "totals": {        "dedicated_cpu_milli_s": 3600000,        "dedicated_memory_mib_s": 7372800,        "disk_mib_ms": 9216000000,        "ingress_bytes": 1048576,        "running_ms": 1800000,        "shared_cpu_milli_s": 450000,        "shared_memory_mib_s": 1843200      }    }  ],  "to_ms": 1769904000000,  "totals": {    "dedicated_cpu_milli_s": 3600000,    "dedicated_memory_mib_s": 7372800,    "disk_mib_ms": 9216000000,    "ingress_bytes": 1048576,    "running_ms": 1800000,    "shared_cpu_milli_s": 450000,    "shared_memory_mib_s": 1843200,    "storage_byte_s": 3686400000000  }}
```

GET

/usage

Example Request

```
curl -X GET 'https://api.slashinfra.com/usage'
```

```
{
"from_ms": 1767225600000,
"plan": {
"databases_allowed": false,
"dedicated_allowed": false,
"id": "standard",
"inbox_allowed": true,
"max_memory_mib": 8192,
"max_open_ports": 50,
"max_snapshots": 50,
"max_svms": 5,
"max_url_ttl_s": 2592000,
"public_ports_allowed": true,
"schedule_min_interval_s": 300,
"schedules_max": 10,
"stream_max_s": 3600
},
"project": "proj_6f1c0f0e8a",
"svms": [
{
"id": "6f1c0f0e8a",
"totals": {
"dedicated_cpu_milli_s": 3600000,
"dedicated_memory_mib_s": 7372800,
"disk_mib_ms": 9216000000,
"ingress_bytes": 1048576,
"running_ms": 1800000,
"shared_cpu_milli_s": 450000,
"shared_memory_mib_s": 1843200
}
}
],
"to_ms": 1769904000000,
"totals": {
"dedicated_cpu_milli_s": 3600000,
"dedicated_memory_mib_s": 7372800,
"disk_mib_ms": 9216000000,
"ingress_bytes": 1048576,
"running_ms": 1800000,
"shared_cpu_milli_s": 450000,
"shared_memory_mib_s": 1843200,
"storage_byte_s": 3686400000000
}
}
```
