GET
/
v1
/
organizations
/
{organizationId}
/
storage
/
usage
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.getStorageUsage({
  organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId",
})
{
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "activeBytes": 123,
  "softDeletedBytes": 123,
  "activeAssetCount": 123,
  "softDeletedAssetCount": 123,
  "highWaterMarkBytes": 123,
  "measuredAt": "<string>"
}

Path Parameters

organizationId
string
required

Response

Success

organizationId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
activeBytes
number
required
softDeletedBytes
number
required
activeAssetCount
number
required
softDeletedAssetCount
number
required
highWaterMarkBytes
number
required
measuredAt
string
required