GET
/
v1
/
organizations
/
{organizationId}
/
storage
/
quota
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.storagemetering.getStorageQuota({
  organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId",
})
{
  "allowed": true,
  "currentBytes": 123,
  "limitBytes": 123
}

Path Parameters

organizationId
string
required

Response

Success

allowed
boolean
required
currentBytes
number
required
limitBytes
number
required