Layerbeat

Get server traffic usage

GET
/v1/vms/{id}/traffic

Returns the VPS's used and remaining monthly traffic allowance.

Access: API key: vm:read · Session: any workspace role.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Path Parameters

id*string

The resource id.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Traffic usage

application/json
  1. response
metered*boolean

false when the plan has no traffic cap.

used_bytes*integer
Formatint64
total_bytes*integer
Formatint64
remaining_bytes*integer
Formatint64
overflow_bytes*integer

Traffic beyond the allowance in this period.

Formatint64
period_start*|
Formatdate-time
period_end*|

When the allowance resets.

Formatdate-time
network_suspended*boolean

The network was cut because the account is overdue.

curl -X GET 'https://layerbeat.com/v1/vms/string/traffic'
{  "metered": true,  "used_bytes": 53687091200,  "total_bytes": 1073741824000,  "remaining_bytes": 1020054732800,  "overflow_bytes": 0,  "period_start": "2026-10-01T00:00:00Z",  "period_end": "2026-11-01T00:00:00Z",  "network_suspended": false}