{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibmeai2a3ir2hjxktit5rngub6ktfh6rkhbyae47f66r3zsqrmwze",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkkg2rithjy2"
},
"path": "/t/issue-in-fetching-openai-api-usage-billing-cost-and-credit-balance-programmatically-for-backend-monitoring/1379947#post_2",
"publishedAt": "2026-04-28T10:40:14.000Z",
"site": "https://community.openai.com",
"textContent": "You have given dashboard API endpoints, which are only for use by the platform site and a browser, with session key and bot validation checks. They are not for programmatic use.\n\nYou will need to use an organization admin API key in order to call administration API endpoints. Then consult the API reference for the calling methods and what resources are available.\n\nYou should code so that you get an error status code and body error message. This would reveal any faults in your calling technique, such as “not authorized!”",
"title": "Issue in fetching OpenAI API usage, billing cost, and credit balance programmatically for backend monitoring"
}