Platform API ClientClient group2 methodsUsageMethods
Usage
Read operation-level usage totals and time-series history for metered billing dimensions.
Current summaryHistorical entries
Usage
usage.get()
Generated exampleHTTP endpoint wrapperGET /api/v1/usageGET /api/v1/usage
Signature
get(): Promise<UsageSummaryResponse>TypeScript SDKTypeScript
import { ArelisClient } from "@arelis-ai/governance-api-client";
const client = new ArelisClient({
baseUrl: "https://api.arelis.digital",
apiKey: process.env.ARELIS_API_KEY,
});
const response = await client.usage.get();
console.log(response);Response
// Response type
Promise<UsageSummaryResponse>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));usage.history()
Generated exampleHTTP endpoint wrapperGET /api/v1/usage/historyGET /api/v1/usage/history
Signature
history(): Promise<UsageHistoryResponse>TypeScript SDKTypeScript
import { ArelisClient } from "@arelis-ai/governance-api-client";
const client = new ArelisClient({
baseUrl: "https://api.arelis.digital",
apiKey: process.env.ARELIS_API_KEY,
});
const response = await client.usage.history();
console.log(response);Response
// Response type
Promise<UsageHistoryResponse>
// Inspect concrete fields from your runtime payload:
// console.log(JSON.stringify(response, null, 2));