Skip to content

List bandwidth blocks

GET/bandwidth-blocks

Overview

Lists bandwidth blocks in the current team, newest first. Includes active blocks and pending purchases with status_label and progress_message. Blocks under billing review or with no remaining bandwidth are omitted. totals summarizes the listed blocks. pooled_locations lists the locations where the current team's servers share an allowance.

Permissions

Requires the network.read (View networking) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/bandwidth-blocks' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "items": [
    {
      "uuid": "23653478-238e-4db3-b263-91a221b5e7c2",
      "uuid_short": "Uuid short",
      "region": "us_eu",
      "region_label": "Americas & EMEA",
      "size": 2199023255552,
      "consumed": 549755813888,
      "remaining": 1649267441664,
      "terabytes": 2,
      "status": "active",
      "status_label": "Active",
      "progress_message": null,
      "needs_funds": false,
      "assignment": "servers",
      "servers": [
        {
          "id": "304e1794",
          "uuid": "304e1794-a5b7-41f2-9a20-c0d444eb6683",
          "name": "sector-c-db",
          "hostname": "sector-c-db.blackmesa.example.com",
          "template_name": "Debian 13",
          "template_icon_url": "/assets/icons/debian.png",
          "windows": false,
          "address": "203.0.113.57",
          "location": "Kansas City, MO"
        }
      ],
      "servers_in_other_teams": 0,
      "attachable_servers": 1,
      "location": null,
      "unit_price": "1.00",
      "billing": {
        "service_id": null,
        "invoice_id": 17853,
        "invoice_url": null,
        "checkout_uuid": null,
        "invoice_status": "Paid",
        "amount": "2.00",
        "currency": "USD",
        "billing_cycle": null,
        "payment_due_at": null,
        "payment_window_minutes": 30,
        "paid_at": "2026-08-20T11:26:19+00:00"
      },
      "can_cancel": true,
      "created_at": "2026-08-20T11:26:14+00:00",
      "cancellation_refund": "1.50",
      "refund_amount": null,
      "refund_pending": false
    }
  ],
  "totals": {
    "blocks": 1,
    "size": 2199023255552,
    "consumed": 549755813888,
    "remaining": 1649267441664,
    "pending": 0,
    "by_region": {
      "us_eu": {
        "label": "Americas & EMEA",
        "blocks": 1,
        "size": 2199023255552,
        "remaining": 1649267441664
      },
      "apac": {
        "label": "APAC",
        "blocks": 0,
        "size": 0,
        "remaining": 0
      }
    }
  },
  "pooled_locations": []
}

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Response 200

application/json

The record, as a JSON object. There is no envelope.

itemsobject[]required

The blocks themselves. Every byte figure is a plain byte count.

Show child attributes
uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

regionstringrequired

The value of region.

One of: us_eu, apac

region_labelstringrequired

The value of region_label.

sizeintegerrequired

The value of size.

consumedintegerrequired

The value of consumed.

remainingintegerrequired

The value of remaining.

terabytesintegerrequired

The value of terabytes.

statusstringrequired

The value of status.

One of: pending_payment, active, expired, cancelled, payment_review, revoked

status_labelstringrequired

The value of status_label.

progress_messagestring | nullrequired

One sentence about why a purchase is waiting, most often how much the account is short by. Null once there is nothing to say.

needs_fundsbooleanrequired

Whether the purchase is waiting for enough account credit.

assignmentstringrequired

Whether the block is assigned to individual servers or a city.

serversobject[]required

The value of servers.

Show child attributes
idstringrequired

The id ID.

uuidstringrequired

The uuid UUID.

namestringrequired

The name shown to customers.

hostnamestringrequired

The fully qualified hostname.

template_namestring | nullrequired

What a badge or a picker paints the machine with, the same as the dashboard.

template_icon_urlstring | nullrequired

The value of template_icon_url.

windowsbooleanrequired

The value of windows.

addressstring | nullrequired

The machine's primary IPv4, so a picker names it the way a customer does.

locationstring | nullrequired

The city it sits in, or null when its location is unknown.

servers_in_other_teamsintegerrequired

The rest of what it covers, counted rather than named. Nought for the account holder, who is shown every one of them, and for anyone else not standing inside a single team.

attachable_serversinteger | nullrequired

How many of the account's servers this block could still be put behind: metered, in the region it was bought for, and not already covered by it. Null where it was not counted, which is not the same as none.

locationobject | nullrequired

The value of location.

Show child attributes
idintegerrequired

The id ID.

namestringrequired

The name shown to customers.

unit_pricestringrequired

The value of unit_price.

billingobjectrequired

The value of billing.

Show child attributes
service_idinteger | nullrequired

The customer's service number, once a recurring service exists.

invoice_idinteger | nullrequired

The customer's invoice number, once an invoice exists.

invoice_urlstring | nullrequired

A complete URL where the invoice can be paid.

checkout_uuidstring | nullrequired

The checkout UUID, or null when no checkout is available.

checkout_uuid_shortstring | nullrequired

The value of checkout_uuid_short.

invoice_statusstring | nullrequired

The current invoice status, or null before an invoice exists.

amountstring | nullrequired

The amount in the currency shown by currency.

currencystring | nullrequired

The three-letter currency code used for amount.

billing_cyclestring | nullrequired

How often the service renews, or null for a one-time charge.

payment_due_atstring | nullrequired

When payment is due before the reservation is released.

payment_window_minutesinteger | nullrequired

How many minutes the original payment window allowed.

paid_atstring | nullrequired

When the charge was paid, or null while payment is outstanding.

can_cancelbooleanrequired

Whether the customer can cancel.

created_atstring | nullrequired

The date and time for created at, in UTC.

cancellation_refundstringrequired

The value of cancellation_refund.

refund_amountstring | nullrequired

The value of refund_amount.

refund_pendingbooleanrequired

The value of refund_pending.

totalsobjectrequired

The same rows added up, overall and by region.

Show child attributes
blocksintegerrequired

The value of blocks.

sizeintegerrequired

The value of size.

consumedintegerrequired

The value of consumed.

remainingintegerrequired

The value of remaining.

pendingintegerrequired

Purchases still awaiting payment, which are no part of the totals above.

by_regionobject | arrayrequired

The value of by_region.

pooled_locationsinteger[]required

The ids of the cities where the current team's servers share one budget.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.