Skip to main content
GET
/
traffic
/
quota
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";

const latitudesh = new Latitudesh({
  bearer: process.env["LATITUDESH_BEARER"] ?? "",
});

async function run() {
  const result = await latitudesh.traffic.getQuota();

  console.log(result);
}

run();
{
  "data": {
    "id": "traffic_quota",
    "type": "traffic_quota",
    "attributes": {
      "quota_per_project": [
        {
          "project_id": "proj_e8pKq0aKDWAob",
          "project_slug": "synergistic-linen-computer",
          "billing_method": "Normal",
          "quota_per_region": [
            {
              "region_id": "reg_9QDB5qag",
              "price": 500,
              "region_slug": "brazil",
              "quota_in_tb": {
                "granted": 20,
                "additional": 0,
                "total": 20
              },
              "quota_in_mbps": {
                "granted": 0,
                "additional": 0,
                "total": 0
              }
            }
          ]
        }
      ]
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Query Parameters

filter[project]
string

Response

200 - application/vnd.api+json

Success

data
object