cURL
curl --request GET 'https://api.integrateledger.com/v1/catalog' \
-H "Authorization: Bearer $LEDGER_API_KEY"import ledger from "integrateledger";
const client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? "" });
await client.getCatalog();import os
from integrateledger import ledger
client = ledger(api_key=os.environ["LEDGER_API_KEY"])
client.get_catalog(){
"environment": "sandbox",
"creditsPerUsd": 123,
"models": [
{
"id": "<string>",
"inputUsdPerMTok": "<string>",
"outputUsdPerMTok": "<string>",
"cacheReadUsdPerMTok": "<string>",
"cacheWriteUsdPerMTok": "<string>",
"reasoningUsdPerMTok": "<string>",
"audioInputUsdPerMTok": "<string>",
"audioOutputUsdPerMTok": "<string>"
}
],
"plans": [
{
"id": "<string>",
"name": "<string>",
"monthlyCredits": 1,
"billingInterval": "month",
"resetInterval": "month",
"priceCents": 1073741823,
"rollover": {
"maxCredits": 123,
"maxPercent": 123,
"periods": 123
},
"autoTopUp": {
"thresholdCredits": 123,
"addOnId": "<string>",
"amountCents": 123,
"maxPerPeriod": 123,
"maxAmountCentsPerPeriod": 123
},
"ignorePastDue": true,
"customOnly": true,
"items": [
{
"featureId": "<string>",
"included": 123,
"unlimited": true,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 123
}
],
"overageTiersMode": "graduated",
"price": {
"model": "per_unit",
"billingUnits": 123,
"unitAmountCents": 123,
"tiers": [
{
"upTo": 123,
"unitAmountCents": 123
}
],
"tiersMode": "graduated",
"includedQuantity": 123,
"proration": {
"onIncrease": "next_invoice",
"onDecrease": "next_invoice"
}
},
"rollover": {
"maxCredits": 123,
"maxPercent": 123,
"periods": 123
},
"trialIncluded": 123,
"prepaid": {
"billingUnits": 123,
"unitAmountCents": 123,
"maxQuantity": 123
}
}
],
"group": "<string>",
"addOn": true,
"maxQuantity": 123,
"entityGrants": "own",
"previousIds": [
"<string>"
],
"variantOf": "<string>",
"currencyOptions": {},
"currency": "<string>",
"monthlyPriceCents": 1073741823,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageCapCents": 1073741823,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"trial": {
"days": 123,
"cardRequired": true,
"onEnd": "bill",
"credits": 123
},
"licenses": [
{
"planId": "<string>",
"seatFeatureId": "<string>",
"includedSeats": 1073741823,
"seatPriceCents": 123,
"maxSeats": 1073741823
}
],
"prepaid": {
"billingUnits": 123,
"unitAmountCents": 123,
"maxQuantity": 123
},
"controls": {
"usageLimits": [
{
"limit": 1073741823,
"interval": "day",
"featureId": "<string>",
"creditPool": true,
"anchor": "utc",
"filter": {}
}
],
"usageAlerts": [
{
"name": "<string>",
"type": "usage",
"threshold": 1073741823.5,
"featureId": "<string>",
"creditPool": true,
"usageLimit": {
"interval": "day",
"filter": {}
}
}
],
"overage": [
{
"featureId": "<string>",
"creditPool": true,
"allowed": true,
"freeUnits": 1073741823,
"billOverage": true
}
]
},
"version": 123,
"stripeSyncStatus": "pending",
"versionLabel": "<string>",
"draft": {
"name": "<string>",
"monthlyCredits": 1,
"billingInterval": "month",
"resetInterval": "month",
"priceCents": 1073741823,
"rollover": {
"maxCredits": 1073741823,
"maxPercent": 50,
"periods": 1073741823
},
"autoTopUp": {
"thresholdCredits": 1073741823,
"addOnId": "<string>",
"amountCents": 49999999,
"maxPerPeriod": 16,
"maxAmountCentsPerPeriod": 49999999
},
"ignorePastDue": true,
"customOnly": true,
"items": [
{
"featureId": "<string>",
"included": 1,
"unlimited": true,
"overageUnitAmountCents": 1073741823,
"overageBillingUnits": 1073741823,
"overageTiers": [
{
"upTo": 1073741823,
"unitAmountCents": 1073741823,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"price": {
"model": "per_unit",
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"tiers": [
{
"upTo": 1073741823,
"unitAmountCents": 1073741823
}
],
"tiersMode": "graduated",
"includedQuantity": 1073741823,
"proration": {
"onIncrease": "next_invoice",
"onDecrease": "next_invoice"
}
},
"rollover": {
"maxCredits": 1073741823,
"maxPercent": 50,
"periods": 1073741823
},
"trialIncluded": 1073741823,
"prepaid": {
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"maxQuantity": 1073741823
}
}
],
"group": "<string>",
"addOn": true,
"maxQuantity": 1073741824,
"entityGrants": "own",
"version": 1,
"versionLabel": "<string>",
"currencyOptions": {},
"currency": "<string>",
"monthlyPriceCents": 1073741823,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageCapCents": 1073741823,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"trial": {
"days": 183,
"cardRequired": true,
"onEnd": "bill",
"credits": 1073741823
},
"licenses": [
{
"planId": "<string>",
"seatFeatureId": "<string>",
"includedSeats": 1073741823,
"seatPriceCents": 1073741823,
"maxSeats": 1073741823
}
],
"prepaid": {
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"maxQuantity": 1073741823
},
"controls": {
"usageLimits": [
{
"limit": 1073741823,
"interval": "day",
"featureId": "<string>",
"creditPool": true,
"anchor": "utc",
"filter": {}
}
],
"usageAlerts": [
{
"name": "<string>",
"type": "usage",
"threshold": 1073741823.5,
"featureId": "<string>",
"creditPool": true,
"usageLimit": {
"interval": "day",
"filter": {}
}
}
],
"overage": [
{
"featureId": "<string>",
"creditPool": true,
"allowed": true,
"freeUnits": 1073741823,
"billOverage": true
}
]
},
"stripeSyncStatus": "pending"
}
}
],
"features": [
{
"id": "<string>",
"name": "<string>",
"type": "credits",
"creditCost": 123,
"creditCostTiers": [
{
"upTo": 123,
"creditCost": 123
}
],
"balance": "pool",
"creditsPerUsd": 123,
"markupPercent": 123,
"providerMarkupPercent": {},
"modelMarkupPercent": {}
}
],
"addOns": [
{
"id": "<string>",
"name": "<string>",
"type": "credit_pack",
"creditAmount": 123,
"priceCents": 123,
"currency": "<string>"
}
],
"rewards": [
{
"id": "<string>",
"name": "<string>",
"promotionCodes": [
{
"code": "<string>",
"maxRedemptions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"firstTimeOnly": true
}
],
"coupon": {
"duration": "once",
"planIds": [
"<string>"
],
"percentOff": 99,
"amountOffCents": 123,
"durationMonths": 18
},
"grant": {
"items": [
{
"featureId": "<string>",
"amount": 123,
"expiresAfter": {
"days": 1825,
"months": 60
}
}
]
},
"maxRedemptions": 123,
"redeemBy": "2023-11-07T05:31:56Z",
"oncePerCustomer": true
}
],
"referralPrograms": [
{
"id": "<string>",
"name": "<string>",
"referrerRewardId": "<string>",
"trigger": "signup",
"refereeRewardId": "<string>",
"planIds": [
"<string>"
],
"maxRewardsPerReferrer": 123
}
],
"topUps": {
"minCents": 123,
"maxCents": 123,
"creditsPerUsd": 123
}
}{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"error": "insufficient_permissions",
"requiredScope": "customers:read",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}{
"error": "rate_limited",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}Catalog
Get the catalog
Read an environment’s whole catalog in one request, as the CLI pulls it.
GET
/
v1
/
catalog
cURL
curl --request GET 'https://api.integrateledger.com/v1/catalog' \
-H "Authorization: Bearer $LEDGER_API_KEY"import ledger from "integrateledger";
const client = new ledger({ apiKey: process.env.LEDGER_API_KEY ?? "" });
await client.getCatalog();import os
from integrateledger import ledger
client = ledger(api_key=os.environ["LEDGER_API_KEY"])
client.get_catalog(){
"environment": "sandbox",
"creditsPerUsd": 123,
"models": [
{
"id": "<string>",
"inputUsdPerMTok": "<string>",
"outputUsdPerMTok": "<string>",
"cacheReadUsdPerMTok": "<string>",
"cacheWriteUsdPerMTok": "<string>",
"reasoningUsdPerMTok": "<string>",
"audioInputUsdPerMTok": "<string>",
"audioOutputUsdPerMTok": "<string>"
}
],
"plans": [
{
"id": "<string>",
"name": "<string>",
"monthlyCredits": 1,
"billingInterval": "month",
"resetInterval": "month",
"priceCents": 1073741823,
"rollover": {
"maxCredits": 123,
"maxPercent": 123,
"periods": 123
},
"autoTopUp": {
"thresholdCredits": 123,
"addOnId": "<string>",
"amountCents": 123,
"maxPerPeriod": 123,
"maxAmountCentsPerPeriod": 123
},
"ignorePastDue": true,
"customOnly": true,
"items": [
{
"featureId": "<string>",
"included": 123,
"unlimited": true,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 123
}
],
"overageTiersMode": "graduated",
"price": {
"model": "per_unit",
"billingUnits": 123,
"unitAmountCents": 123,
"tiers": [
{
"upTo": 123,
"unitAmountCents": 123
}
],
"tiersMode": "graduated",
"includedQuantity": 123,
"proration": {
"onIncrease": "next_invoice",
"onDecrease": "next_invoice"
}
},
"rollover": {
"maxCredits": 123,
"maxPercent": 123,
"periods": 123
},
"trialIncluded": 123,
"prepaid": {
"billingUnits": 123,
"unitAmountCents": 123,
"maxQuantity": 123
}
}
],
"group": "<string>",
"addOn": true,
"maxQuantity": 123,
"entityGrants": "own",
"previousIds": [
"<string>"
],
"variantOf": "<string>",
"currencyOptions": {},
"currency": "<string>",
"monthlyPriceCents": 1073741823,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageCapCents": 1073741823,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"trial": {
"days": 123,
"cardRequired": true,
"onEnd": "bill",
"credits": 123
},
"licenses": [
{
"planId": "<string>",
"seatFeatureId": "<string>",
"includedSeats": 1073741823,
"seatPriceCents": 123,
"maxSeats": 1073741823
}
],
"prepaid": {
"billingUnits": 123,
"unitAmountCents": 123,
"maxQuantity": 123
},
"controls": {
"usageLimits": [
{
"limit": 1073741823,
"interval": "day",
"featureId": "<string>",
"creditPool": true,
"anchor": "utc",
"filter": {}
}
],
"usageAlerts": [
{
"name": "<string>",
"type": "usage",
"threshold": 1073741823.5,
"featureId": "<string>",
"creditPool": true,
"usageLimit": {
"interval": "day",
"filter": {}
}
}
],
"overage": [
{
"featureId": "<string>",
"creditPool": true,
"allowed": true,
"freeUnits": 1073741823,
"billOverage": true
}
]
},
"version": 123,
"stripeSyncStatus": "pending",
"versionLabel": "<string>",
"draft": {
"name": "<string>",
"monthlyCredits": 1,
"billingInterval": "month",
"resetInterval": "month",
"priceCents": 1073741823,
"rollover": {
"maxCredits": 1073741823,
"maxPercent": 50,
"periods": 1073741823
},
"autoTopUp": {
"thresholdCredits": 1073741823,
"addOnId": "<string>",
"amountCents": 49999999,
"maxPerPeriod": 16,
"maxAmountCentsPerPeriod": 49999999
},
"ignorePastDue": true,
"customOnly": true,
"items": [
{
"featureId": "<string>",
"included": 1,
"unlimited": true,
"overageUnitAmountCents": 1073741823,
"overageBillingUnits": 1073741823,
"overageTiers": [
{
"upTo": 1073741823,
"unitAmountCents": 1073741823,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"price": {
"model": "per_unit",
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"tiers": [
{
"upTo": 1073741823,
"unitAmountCents": 1073741823
}
],
"tiersMode": "graduated",
"includedQuantity": 1073741823,
"proration": {
"onIncrease": "next_invoice",
"onDecrease": "next_invoice"
}
},
"rollover": {
"maxCredits": 1073741823,
"maxPercent": 50,
"periods": 1073741823
},
"trialIncluded": 1073741823,
"prepaid": {
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"maxQuantity": 1073741823
}
}
],
"group": "<string>",
"addOn": true,
"maxQuantity": 1073741824,
"entityGrants": "own",
"version": 1,
"versionLabel": "<string>",
"currencyOptions": {},
"currency": "<string>",
"monthlyPriceCents": 1073741823,
"overageUnitAmountCents": 123,
"overageBillingUnits": 123,
"overageCapCents": 1073741823,
"overageTiers": [
{
"upTo": 123,
"unitAmountCents": 123,
"flatAmountCents": 1073741823
}
],
"overageTiersMode": "graduated",
"trial": {
"days": 183,
"cardRequired": true,
"onEnd": "bill",
"credits": 1073741823
},
"licenses": [
{
"planId": "<string>",
"seatFeatureId": "<string>",
"includedSeats": 1073741823,
"seatPriceCents": 1073741823,
"maxSeats": 1073741823
}
],
"prepaid": {
"billingUnits": 1073741823,
"unitAmountCents": 1073741823,
"maxQuantity": 1073741823
},
"controls": {
"usageLimits": [
{
"limit": 1073741823,
"interval": "day",
"featureId": "<string>",
"creditPool": true,
"anchor": "utc",
"filter": {}
}
],
"usageAlerts": [
{
"name": "<string>",
"type": "usage",
"threshold": 1073741823.5,
"featureId": "<string>",
"creditPool": true,
"usageLimit": {
"interval": "day",
"filter": {}
}
}
],
"overage": [
{
"featureId": "<string>",
"creditPool": true,
"allowed": true,
"freeUnits": 1073741823,
"billOverage": true
}
]
},
"stripeSyncStatus": "pending"
}
}
],
"features": [
{
"id": "<string>",
"name": "<string>",
"type": "credits",
"creditCost": 123,
"creditCostTiers": [
{
"upTo": 123,
"creditCost": 123
}
],
"balance": "pool",
"creditsPerUsd": 123,
"markupPercent": 123,
"providerMarkupPercent": {},
"modelMarkupPercent": {}
}
],
"addOns": [
{
"id": "<string>",
"name": "<string>",
"type": "credit_pack",
"creditAmount": 123,
"priceCents": 123,
"currency": "<string>"
}
],
"rewards": [
{
"id": "<string>",
"name": "<string>",
"promotionCodes": [
{
"code": "<string>",
"maxRedemptions": 123,
"expiresAt": "2023-11-07T05:31:56Z",
"firstTimeOnly": true
}
],
"coupon": {
"duration": "once",
"planIds": [
"<string>"
],
"percentOff": 99,
"amountOffCents": 123,
"durationMonths": 18
},
"grant": {
"items": [
{
"featureId": "<string>",
"amount": 123,
"expiresAfter": {
"days": 1825,
"months": 60
}
}
]
},
"maxRedemptions": 123,
"redeemBy": "2023-11-07T05:31:56Z",
"oncePerCustomer": true
}
],
"referralPrograms": [
{
"id": "<string>",
"name": "<string>",
"referrerRewardId": "<string>",
"trigger": "signup",
"refereeRewardId": "<string>",
"planIds": [
"<string>"
],
"maxRewardsPerReferrer": 123
}
],
"topUps": {
"minCents": 123,
"maxCents": 123,
"creditsPerUsd": 123
}
}{
"error": "<string>",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment.",
"issues": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"error": "insufficient_permissions",
"requiredScope": "customers:read",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}{
"error": "rate_limited",
"message": "No customer \"user_123\" exists in this environment. Create it with POST /v1/customers, or check that the API key is for the right environment."
}Returns the environment’s active plans, features and credit packs, each in the shape of its own list endpoint, with
creditsPerUsd (null for abstract credits) and models, your own AI model prices, sorted by ID.
Needs the Catalog permission at Read.Authorizations
Response
The environment's active catalog: the plan, feature and add-on lists as GET /v1/plans, /v1/features and /v1/add-ons return them, the shared pool's creditsPerUsd, your model prices and the top-up bounds.