{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicyg57nl3go2zgvtnv5fwwkuyqwi2jrxr7bsj677paellx4567lju",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkkg3wvk3dp2"
},
"path": "/t/issue-in-fetching-openai-api-usage-billing-cost-and-credit-balance-programmatically-for-backend-monitoring/1379947#post_1",
"publishedAt": "2026-04-28T09:34:25.000Z",
"site": "https://community.openai.com",
"textContent": "Hi everyone,\n\nI’m trying to fetch **OpenAI API usage, billing cost, and credit balance programmatically** for backend monitoring.\n\nI tried calling the below endpoints.\nGET /v1/usage\nGET /v1/dashboard/billing/usage\nGET /v1/dashboard/billing/credit_grants\nGET /v1/dashboard/billing/subscription\n\nBut did not get any response from these endpoints.",
"title": "Issue in fetching OpenAI API usage, billing cost, and credit balance programmatically for backend monitoring"
}